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

# Get current actor and team

> Get current actor and team through the Towbar REST API.

Required permissions: identity.read. Personal keys are capped by their owner’s current team role.

See [request conventions](/docs/api/overview) and [automation workflows](/docs/api/workflows). MCP clients use the task-oriented [tool catalogue](/docs/api/mcp-tools).


## OpenAPI

````yaml api-reference/openapi.json GET /identity
openapi: 3.1.0
info:
  title: Towbar API
  version: 2.0.0
  description: >-
    Manage your Towbar control plane with a bearer API key. Keys inherit current
    workspace permissions.
servers:
  - url: https://api.example.com/v1/api
security: []
paths:
  /identity:
    get:
      tags:
        - Workspace / Identity
      summary: Get current actor and team
      description: >-
        Required permissions: identity.read. Personal keys are capped by the
        current member role; team keys use explicit grants.
      operationId: get_identity
      parameters: []
      responses:
        '200':
          description: Actor kind, team ID, and effective permissions.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Response_135'
                  - type: object
                    properties:
                      localization:
                        $schema: https://json-schema.org/draft/2020-12/schema
                        type: object
                        properties:
                          dateFormat:
                            type: string
                            enum:
                              - day-short-month-year
                              - short-month-day-year
                              - year-month-day
                              - day-month-year
                              - month-day-year
                          timeFormat:
                            type: string
                            enum:
                              - 24-hour
                              - 12-hour
                              - 24-hour-seconds
                              - 12-hour-seconds
                          timeZone:
                            type: string
                          timestamps:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties:
                              type: object
                              properties:
                                date:
                                  type: string
                                time:
                                  type:
                                    - string
                                    - 'null'
                                dateTime:
                                  type:
                                    - string
                                    - 'null'
                                timeZone:
                                  type: string
                                zoneLabel:
                                  type: string
                                epochMilliseconds:
                                  type: number
                                inputDateTime:
                                  type:
                                    - string
                                    - 'null'
                              required:
                                - date
                                - time
                                - dateTime
                                - timeZone
                                - zoneLabel
                                - epochMilliseconds
                                - inputDateTime
                              additionalProperties: false
                        required:
                          - dateFormat
                          - timeFormat
                          - timeZone
                          - timestamps
                        additionalProperties: false
                    required:
                      - localization
        '400':
          $ref: '#/components/responses/ApiError'
        '401':
          $ref: '#/components/responses/ApiError'
        '403':
          $ref: '#/components/responses/ApiError'
        '404':
          $ref: '#/components/responses/ApiError'
        '409':
          $ref: '#/components/responses/ApiError'
        '413':
          $ref: '#/components/responses/ApiError'
        '422':
          $ref: '#/components/responses/ApiError'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ApiError'
      security:
        - bearerAuth: []
components:
  schemas:
    Response_135:
      type: object
      properties:
        actor:
          anyOf:
            - type: string
              const: session
            - type: string
              const: personal-key
            - type: string
              const: team-key
            - type: string
              const: system
        workspaceId:
          type: string
        capabilities:
          type: array
          items:
            anyOf:
              - type: string
                const: identity.read
              - type: string
                const: server.prepare
              - type: string
                const: server.update
              - type: string
                const: server.read
              - type: string
                const: server.credentials
              - type: string
                const: server.remove
              - type: string
                const: server.terminal
              - type: string
                const: integration.manage
              - type: string
                const: secret.update
              - type: string
                const: secret.list
              - type: string
                const: secret.reveal
              - type: string
                const: system.read
              - type: string
                const: system.manage
              - type: string
                const: repository.update
              - type: string
                const: repository.read
              - type: string
                const: repository.connect
              - type: string
                const: repository.sync
              - type: string
                const: repository.disconnect
              - type: string
                const: deployment.read
              - type: string
                const: deployment.create
              - type: string
                const: deployment.cancel
              - type: string
                const: workload.read
              - type: string
                const: workload.operate
              - type: string
                const: resource.read
              - type: string
                const: resource.backup
              - type: string
                const: resource.restore
              - type: string
                const: sharedSecret.update
              - type: string
                const: sharedSecret.list
              - type: string
                const: sharedSecret.reveal
              - type: string
                const: sharedSecret.reference
              - type: string
                const: scout.read
              - type: string
                const: scout.configure
              - type: string
                const: alert.read
              - type: string
                const: alert.configure
              - type: string
                const: githubInstallation.read
              - type: string
                const: notification.manage
              - type: string
                const: inbox.update
              - type: string
                const: inbox.read
              - type: string
                const: privateKey.manage
              - type: string
                const: privateKey.reveal
              - type: string
                const: member.update
              - type: string
                const: member.delete
              - type: string
                const: member.read
              - type: string
                const: member.create
              - type: string
                const: invitation.read
              - type: string
                const: invitation.create
              - type: string
                const: invitation.cancel
              - type: string
                const: organization.update
              - type: string
                const: organization.delete
              - type: string
                const: apikey.update
              - type: string
                const: apikey.delete
              - type: string
                const: apikey.read
              - type: string
                const: apikey.create
              - type: string
                const: team.update
              - type: string
                const: team.read
              - type: string
                const: personal.manage
      required:
        - actor
        - workspaceId
        - capabilities
  responses:
    ApiError:
      description: Request failed. The error object contains code, message, and requestId.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                required:
                  - code
                  - message
                  - requestId
                properties:
                  code:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
    RateLimited:
      description: Request failed. The error object contains code, message, and requestId.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                required:
                  - code
                  - message
                  - requestId
                properties:
                  code:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
      headers:
        Retry-After:
          description: Seconds before retrying
          schema:
            type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Towbar API key

````