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

# Get v2orgs service accounts

> Get a service account by slug



## OpenAPI

````yaml /api-reference/swagger.yml get /v2/orgs/{orgSlug}/service-accounts/{saSlug}
openapi: 3.0.0
info:
  version: 1.0.0
  title: Prisme.ai APIs
  description: Prisme.ai APIs specifications
  termsOfService: https://www.prisme.ai/mentions-legales
  contact:
    name: Prisme.ai Support Team
    email: support@prisme.ai
    url: https://www.prisme.ai
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.eda.prisme.ai
  - url: http://localhost:3001
security:
  - BearerAuth: []
  - WorkspaceApiKeyAuth: []
  - BearerAuth: []
    WorkspaceApiKeyAuth: []
paths:
  /v2/orgs/{orgSlug}/service-accounts/{saSlug}:
    get:
      tags:
        - Organizations
      description: Get a service account by slug
      operationId: getOrgServiceAccount
      parameters:
        - name: orgSlug
          in: path
          required: true
          schema:
            type: string
        - name: saSlug
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgServiceAccount'
        '401':
          description: AuthenticationError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectNotFoundError'
components:
  schemas:
    OrgServiceAccount:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
          description: Synthetic user ID used in JWT sub (sa:{orgSlug}:{slug})
        orgSlug:
          type: string
        slug:
          type: string
        name:
          type: string
        description:
          type: string
        roleSlug:
          type: string
          description: Organization role assigned to this service account
        scopes:
          type: array
          items:
            type: string
          description: >-
            Optional scope restrictions (empty means all permissions from
            roleSlug)
        disabled:
          type: boolean
        lastUsedAt:
          type: string
          format: date-time
        createdBy:
          type: string
        updatedBy:
          type: string
        createdAt:
          type: string
        updatedAt:
          type: string
    AuthenticationError:
      type: object
      properties:
        error:
          type: string
          example: AuthenticationError
        message:
          type: string
          example: Unauthenticated
    ObjectNotFoundError:
      type: object
      properties:
        error:
          type: string
          example: ObjectNotFound
        message:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: x-prismeai-api-key

````