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

# Describe the account, the credential and the signed-in person.

> The account the request acts in, the credential it used and, for a
person's session, the person: their user ID, email, name, role and
the accounts of their company they may act in (name one in
`Sendblue-Account` to act in it).

Required permission: `me:read`. Accepted credentials: a signed-in person, an API key, the account token.




## OpenAPI

````yaml /api-reference/openapi.yaml get /me
openapi: 3.1.0
info:
  title: Sendblue Omni API
  version: '2026-11-23'
  summary: The native Sendblue communications API served by Omni.
  description: |
    The Sendblue Omni API: messages, numbers, calls, recordings, media, 10DLC
    registration, billing and webhooks for US messaging and calling.

    Every operation on this page is live. Requests and responses are JSON with
    `snake_case` names, at the root of the host with no version prefix. See the
    guides for [authentication](/authentication), [idempotency](/idempotency),
    [errors](/errors), [pagination](/pagination) and [webhooks](/webhooks).
  contact:
    name: Sendblue
    url: https://sendblue.com
servers:
  - url: https://omni-api.sendblue.com
    description: Production
security:
  - person: []
  - bearer: []
  - legacyKeyId: []
    legacyKeySecret: []
tags:
  - name: account
  - name: messages
  - name: numbers
  - name: brands
  - name: campaigns
  - name: calls
  - name: recordings
  - name: media
  - name: contacts
  - name: tags
  - name: variables
  - name: workflows
  - name: admin
  - name: operations
paths:
  /me:
    get:
      tags:
        - account
      summary: Describe the account, the credential and the signed-in person.
      description: >
        The account the request acts in, the credential it used and, for a

        person's session, the person: their user ID, email, name, role and

        the accounts of their company they may act in (name one in

        `Sendblue-Account` to act in it).


        Required permission: `me:read`. Accepted credentials: a signed-in
        person, an API key, the account token.
      operationId: getMe
      parameters:
        - $ref: '#/components/parameters/ActingAccount'
      responses:
        '200':
          description: The account the request acts in.
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Me'
              examples:
                api_key:
                  value:
                    id: ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx01
                    name: Acme
                    status: active
                    type: root
                    parent_id: null
                    credential:
                      type: api_key
                      id: SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx01
                    permissions:
                      - me:read
                      - messages:read
                      - messages:send
                    capabilities:
                      - messages
                    created_at: '2026-11-01T12:00:00Z'
                person:
                  value:
                    id: ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx01
                    name: Acme
                    status: active
                    type: root
                    parent_id: null
                    credential:
                      type: person
                      id: Zk3vJq0cWnS2yXb7uT5pL9aHd1E2
                    permissions:
                      - accounts:create
                      - billing:history
                      - billing:read
                      - billing:refill
                      - billing:top_up
                      - brands:read
                      - brands:write
                      - calls:create
                      - calls:read
                      - calls:write
                      - campaigns:read
                      - campaigns:write
                      - company_settings:read
                      - contacts:read
                      - contacts:write
                      - keys:manage
                      - me:read
                      - media:read
                      - media:write
                      - messages:read
                      - messages:send
                      - messages:write
                      - number_orders:cancel
                      - number_orders:create
                      - number_orders:read
                      - numbers:purchase
                      - numbers:read
                      - numbers:release
                      - numbers:write
                      - operations:read
                      - prices:read
                      - recordings:read
                      - recordings:write
                      - settings:read
                      - settings:write
                      - subaccounts:manage
                      - tags:read
                      - tags:write
                      - team:manage
                      - team:read
                      - variables:read
                      - variables:write
                      - webhooks:manage
                      - workflows:read
                      - workflows:write
                    capabilities:
                      - messages
                      - numbers
                      - brands
                      - campaigns
                      - prices
                      - operations
                      - contacts
                      - tags
                      - variables
                      - workflows
                      - calls
                      - recordings
                      - balance
                      - billing
                      - keys
                      - subaccounts
                      - top_ups
                      - webhooks
                      - media
                      - team
                    created_at: '2026-11-01T12:00:00Z'
                    user:
                      id: Zk3vJq0cWnS2yXb7uT5pL9aHd1E2
                      email: ada@example.com
                      name: Ada Lovelace
                      role: admin
                      accounts:
                        - id: ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx01
                          name: Acme
                          type: root
                        - id: ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx02
                          name: Acme West
                          type: subaccount
                      accounts_truncated: false
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    ActingAccount:
      name: Sendblue-Account
      in: header
      required: false
      description: |
        The account a person acts in: the root account of their company
        (the default) or one of its active subaccounts. Accepted on every
        operation with a person's session, and only with one.
      schema:
        type: string
        pattern: ^AC[0-9a-f]{32}$
  headers:
    RequestId:
      description: |
        `Request-Id`. Identifies this request in Sendblue's logs. Present on
        every response of this API, success or error, and readable by a page
        on an allowed origin.
      schema:
        type: string
        pattern: ^RQ[0-9a-f]{32}$
      example: RQ0123456789abcdef0123456789abcdef
    RetryAfter:
      description: >-
        Seconds to wait before repeating the request. Present on throttled
        requests and resource service outages.
      schema:
        type: integer
  schemas:
    Me:
      type: object
      required:
        - id
        - name
        - status
        - type
        - parent_id
        - credential
        - permissions
        - capabilities
        - created_at
      additionalProperties: false
      properties:
        id:
          type: string
          description: The account the request acts in.
        name:
          type: string
        status:
          $ref: '#/components/schemas/AccountStatus'
        type:
          type: string
          enum:
            - root
            - subaccount
        parent_id:
          type:
            - string
            - 'null'
          description: The parent account's ID, for a subaccount.
        credential:
          type: object
          required:
            - type
            - id
          additionalProperties: false
          properties:
            type:
              type: string
              description: |
                `api_key` for an `SK…` key and for an existing Sendblue API
                key, `account_token` for the account's token, `person` for a
                session.
              enum:
                - api_key
                - account_token
                - person
            id:
              type: string
              description: The key or account ID, or the person's user ID.
        user:
          $ref: '#/components/schemas/User'
          description: The signed-in person. Present for a session only.
        permissions:
          $ref: '#/components/schemas/Permissions'
        capabilities:
          type: array
          description: >
            The resource groups this credential can use on this deployment.

            A group is listed when its routes are live and available to the

            credential. `balance` grants the balance read. `billing` also

            grants access to the billing journal. Contacts, tags, variables and

            workflows appear for grants with available routes in the root
            account

            when company resources are available on this deployment. The

            media group covers uploads and reads of uploaded media. Team is
            listed

            for an eligible root admin session or root account token. Directory
            reads

            recheck a signed-in admin’s current role.
          items:
            type: string
            enum:
              - messages
              - numbers
              - brands
              - campaigns
              - prices
              - operations
              - contacts
              - tags
              - variables
              - workflows
              - calls
              - recordings
              - balance
              - billing
              - keys
              - subaccounts
              - top_ups
              - webhooks
              - media
              - team
        created_at:
          $ref: '#/components/schemas/NullableTimestamp'
    AccountStatus:
      type: string
      enum:
        - active
        - suspended
        - closed
    User:
      type: object
      required:
        - id
        - email
        - name
        - role
        - accounts
        - accounts_truncated
      additionalProperties: false
      properties:
        id:
          type: string
          description: The person's user ID at the identity provider.
        email:
          type:
            - string
            - 'null'
        name:
          type:
            - string
            - 'null'
        role:
          $ref: '#/components/schemas/Role'
        accounts:
          type: array
          description: |
            The accounts the person may act in: the root account of their
            company and its active subaccounts, in ID order, at most 200.
          items:
            type: object
            required:
              - id
              - name
              - type
            additionalProperties: false
            properties:
              id:
                type: string
              name:
                type: string
              type:
                type: string
                enum:
                  - root
                  - subaccount
        accounts_truncated:
          type: boolean
          description: Whether the company has more accounts than `accounts` lists.
    Permissions:
      type: array
      uniqueItems: true
      description: >-
        Effective permission names in lexical order. Grants are immutable after
        issuance.
      items:
        $ref: '#/components/schemas/Permission'
    NullableTimestamp:
      type:
        - string
        - 'null'
      format: date-time
    Error:
      type: object
      required:
        - error
      additionalProperties: false
      properties:
        error:
          type: object
          required:
            - code
            - message
          additionalProperties: false
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
            details:
              type: object
              description: >
                Machine-readable context. `field` names the request member,

                parameter or header at fault; `reason` narrows `unprocessable`,

                and `forbidden` for a verified person with no seat (`no_seat`),

                whose active membership could not be confirmed
                (`membership_unclassified`), or

                whose company has no usable account (`account_required`,
                `account_suspended`).
              properties:
                field:
                  type: string
                reason:
                  type: string
                recovery:
                  type: string
                  enum:
                    - retry_same_idempotency_key
                    - read_resource
                    - reconcile_tag_membership
                  description: >-
                    Required for write_outcome_unknown. Follow the
                    operation-specific recovery before attempting another write.
                required_permission:
                  $ref: '#/components/schemas/Permission'
              additionalProperties: true
    Role:
      type: string
      description: |
        What a person may do. `admin` may use `/admin` (keys, subaccounts,
        billing) and create the company's account; `manager` and `member`
        may use everything else. The role comes from the person's Sendblue
        seat: its `admin` and `manager` are these, and its `user` and
        `member` are `member`.
      enum:
        - admin
        - manager
        - member
    Permission:
      type: string
      enum:
        - accounts:create
        - billing:history
        - billing:read
        - billing:refill
        - billing:top_up
        - brands:read
        - brands:write
        - calls:create
        - calls:read
        - calls:write
        - campaigns:read
        - campaigns:write
        - company_settings:read
        - contacts:read
        - contacts:write
        - keys:manage
        - me:read
        - media:read
        - media:write
        - messages:read
        - messages:send
        - messages:write
        - number_orders:cancel
        - number_orders:create
        - number_orders:read
        - numbers:purchase
        - numbers:read
        - numbers:release
        - numbers:write
        - operations:read
        - prices:read
        - recordings:read
        - recordings:write
        - settings:read
        - settings:write
        - subaccounts:manage
        - tags:read
        - tags:write
        - team:manage
        - team:read
        - variables:read
        - variables:write
        - webhooks:manage
        - webhooks:receive
        - workflows:read
        - workflows:write
    ErrorCode:
      type: string
      description: >
        The catalogue of error codes, with the status each is sent with.


        | Code | Status | Meaning |

        | --- | --- | --- |

        | `invalid_request` | 400 | The request is malformed: bad JSON, an
        unknown or mistyped member, a bad parameter or header. |

        | `unauthenticated` | 401 | No credential, or one that does not verify.
        |

        | `insufficient_funds` | 402 | The balance cannot cover the price, or
        debt is outstanding. |

        | `forbidden` | 403 | The account, resource or deployment refuses this
        operation. |

        | `permission_denied` | 403 | The credential lacks the named permission.
        See `details.required_permission`. |

        | `not_found` | 404 | No such route, or no such resource in this
        account. |

        | `method_not_allowed` | 405 | The route exists and does not take this
        method. |

        | `conflict` | 409 | The resource is not in a state that allows the
        change. |

        | `idempotency_conflict` | 409 | The `Idempotency-Key` was used for a
        different request. |

        | `payload_too_large` | 413 | The request body is over the limit. |

        | `unsupported_media_type` | 415 | The body is not `application/json`. |

        | `unprocessable` | 422 | The request is well formed and cannot be
        carried out; `details.reason` says why. |

        | `unsupported` | 422 | The member or value is defined and not available
        yet. |

        | `rate_limited` | 429 | Too many requests; wait `Retry-After` seconds.
        |

        | `internal` | 500 | An unexpected failure. |

        | `unavailable` | 503 | A dependency is unavailable or the request ran
        out of time; retry. |

        | `upstream_unavailable` | 503 | The resource service is unavailable.
        Wait the number of seconds in Retry-After. |

        | `write_outcome_unknown` | 503 | The owner may have committed. Follow
        details.recovery. Retry-After is omitted. |
      enum:
        - invalid_request
        - unauthenticated
        - insufficient_funds
        - forbidden
        - permission_denied
        - not_found
        - method_not_allowed
        - conflict
        - idempotency_conflict
        - payload_too_large
        - unsupported_media_type
        - unprocessable
        - unsupported
        - rate_limited
        - internal
        - unavailable
        - upstream_unavailable
        - write_outcome_unknown
  responses:
    Error:
      description: >
        Any response that is not 2xx: `400 invalid_request`,

        `401 unauthenticated`, `402 insufficient_funds`, `403 forbidden` or
        `permission_denied`,

        `404 not_found`, `405 method_not_allowed`, `409 conflict` or

        `idempotency_conflict`, `413 payload_too_large`,

        `415 unsupported_media_type`, `422 unprocessable`, `429 rate_limited`,

        `500 internal`, `503 unavailable`, `upstream_unavailable` or
        `write_outcome_unknown`.
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request
              message: Unknown field
              details:
                field: colour
  securitySchemes:
    person:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A person's session: `Authorization: Bearer <ID token>`, the ID token the
        Sendblue sign-in issues. The person acts in their company's root account
        with the role of their seat.
    bearer:
      type: http
      scheme: bearer
      bearerFormat: <credential id>.<secret>
      description: >-
        `Authorization: Bearer <credential id>.<secret>`: an API key ID (`SK…`)
        with the key's secret, or an account ID (`AC…`) with the account's
        token. An existing Sendblue API key is accepted in the same form.
    legacyKeyId:
      type: apiKey
      in: header
      name: sb-api-key-id
      description: >-
        The ID of an existing Sendblue API key (or of an `SK…` key or `AC…`
        account), sent together with `sb-api-secret-key`.
    legacyKeySecret:
      type: apiKey
      in: header
      name: sb-api-secret-key
      description: The credential's secret, sent together with `sb-api-key-id`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.