> ## Documentation Index
> Fetch the complete documentation index at: https://docs.serval.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Access Profile Grant

> Get a specific access profile grant by ID.



## OpenAPI

````yaml /sections/api-reference/openapi-spec-v2.yaml get /v2/access-profile-grants/{id}
openapi: 3.1.0
info:
  title: Serval Public API
  description: Serval Public API
  contact:
    name: Serval
    url: https://serval.com
    email: support@serval.com
  license:
    name: Serval License
    url: https://serval.com/license
  version: 2.0.0
servers:
  - url: https://public.api.serval.com
security:
  - BearerAuth: []
tags:
  - name: Access Policy API
  - name: Access Policy Approval Procedure API
  - name: Access Profile API
  - name: Access Relationship API
  - name: Access Request API
  - name: Agent API
  - name: App Instance API
  - name: App Resource API
  - name: App Resource Role API
  - name: Approval Delegation API
  - name: Approval Request API
  - name: Audit Log API
  - name: Change Blackout API
  - name: Change Model API
  - name: Custom Field API
  - name: Custom Service API
  - name: Entity API
  - name: Entity Field Mapping API
  - name: Entity Ingestion Config API
  - name: Entity Scan Action API
  - name: Entity Type API
  - name: Folder API
  - name: Forms API
  - name: Group API
  - name: Guidance API
  - name: Help Agent API
  - name: Journey API
  - name: Knowledge API
  - name: Knowledge Base API
  - name: Report API
  - name: SLA API
  - name: Schedule API
  - name: Tag API
  - name: Team API
  - name: Team Group API
  - name: Team User API
  - name: Ticket API
  - name: Topic API
  - name: User API
  - name: User Relationship API
  - name: Workflow API
  - name: Workflow Approval Procedure API
  - name: Workflow Run API
paths:
  /v2/access-profile-grants/{id}:
    get:
      tags:
        - Access Profile API
      summary: Get Access Profile Grant
      description: Get a specific access profile grant by ID.
      operationId: svrelay.publicv2.PublicAPIServiceV2.GetAccessProfileGrant
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            title: id
            description: The ID of the access profile grant.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/svflow.publicapi.GetAccessProfileGrantResponse
      security:
        - BearerAuth: []
components:
  schemas:
    svflow.publicapi.GetAccessProfileGrantResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/svflow.pubapimodels.AccessProfileGrant'
          title: data
          x-stainless-terraform-configurability: optional
      title: GetAccessProfileGrantResponse
      additionalProperties: false
    svflow.pubapimodels.AccessProfileGrant:
      type: object
      properties:
        id:
          type: string
          title: id
          description: The ID of the grant.
          readOnly: true
          x-stainless-terraform-configurability: computed
        accessProfileId:
          type: string
          title: access_profile_id
          description: The ID of the access profile.
          x-stainless-terraform-configurability: optional
        workflowId:
          type:
            - string
            - 'null'
          title: workflow_id
          description: The ID of the granted workflow.
          x-stainless-terraform-configurability: optional
        appResourceRoleId:
          type:
            - string
            - 'null'
          title: app_resource_role_id
          description: The ID of the granted app resource role.
          x-stainless-terraform-configurability: optional
        formId:
          type:
            - string
            - 'null'
          title: form_id
          description: The ID of the form whose audience this profile is part of.
          x-stainless-terraform-configurability: optional
        knowledgeItemId:
          type:
            - string
            - 'null'
          title: knowledge_item_id
          description: >-
            The ID of the gated knowledge item. Knowledge-item grants are
            readable
             but not writable via the public API; knowledge gating is managed in-app
             (links inherit down the item tree).
          readOnly: true
          x-stainless-terraform-configurability: computed
        excluded:
          type: boolean
          title: excluded
          description: |-
            Whether this grant is a DENY link: the profile's users are excluded
             from the resource instead of granted it.
          readOnly: true
          x-stainless-terraform-configurability: computed
        tracksTeamDefaultAccessProfile:
          type: boolean
          title: tracks_team_default_access_profile
          description: |-
            Whether this app-resource-role grant automatically tracks the team's
             default access profile. Always false for other resource types.
          readOnly: true
          x-stainless-terraform-configurability: computed
        createdAt:
          $ref: '#/components/schemas/google.protobuf.Timestamp'
          title: created_at
          description: The timestamp when the grant was created.
          readOnly: true
          x-stainless-terraform-configurability: computed
      title: AccessProfileGrant
      additionalProperties: false
      description: |-
        The kind of resource an access profile grant attaches to.
         One access-profile-to-resource attachment. For workflows and app resource
         roles the profile grants access; for forms it narrows the audience (a form
         with no grants is open to anyone in the org). Exactly one of the resource
         id fields is set; the field itself carries the resource kind, so
         cross-team tooling can resolve each id against its own resource type.
    google.protobuf.Timestamp:
      type: string
      examples:
        - '2025-01-15T01:30:15.000Z'
        - '2025-06-01T00:00:00.000Z'
      format: date-time
      description: A timestamp in RFC 3339 format (e.g., "2025-01-15T01:30:15Z").
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````