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

# Get a customer

> Required scope: `customers:read`.



## OpenAPI

````yaml /openapi.yaml get /customers/{customerId}
openapi: 3.1.0
info:
  title: Cerium API
  version: 1.0.0
  description: |
    Send your customers and their conversations to Cerium from your own backend.
    Every request is authenticated with an API key.
servers:
  - url: https://api.usecerium.com/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Customers
  - name: Conversations
  - name: Messages
paths:
  /customers/{customerId}:
    parameters:
      - $ref: '#/components/parameters/CustomerId'
    get:
      tags:
        - Customers
      summary: Get a customer
      description: 'Required scope: `customers:read`.'
      operationId: getCustomer
      responses:
        '200':
          description: The customer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    CustomerId:
      name: customerId
      in: path
      required: true
      description: The customer's Cerium id, as returned when you created them.
      schema:
        type: string
      example: prt_8271
  schemas:
    CustomerResponse:
      type: object
      properties:
        message:
          type: string
        status:
          type: string
          example: success
        data:
          allOf:
            - $ref: '#/components/schemas/Customer'
            - type: object
              properties:
                created:
                  type: boolean
                  description: Only on create. `true` if this call created the customer.
    Customer:
      type: object
      properties:
        id:
          type: string
          example: prt_8271
          description: Cerium's id for the customer.
        externalId:
          type:
            - string
            - 'null'
          example: user_8271
          description: Your own id for the customer.
        name:
          type:
            - string
            - 'null'
          example: Ada Obi
        email:
          type:
            - string
            - 'null'
          format: email
          example: ada@example.com
        phone:
          type:
            - string
            - 'null'
          example: '+2348012345678'
        tags:
          type: array
          items:
            type: string
          example:
            - vip
        attributes:
          type: object
          description: Values for your own attributes, by name.
          additionalProperties:
            type: string
          example:
            plan: Business
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      description: >
        `message` is always present. `code` is a stable identifier for specific
        errors you may want to handle in code.

        A validation error has a `message` that is a list of everything to fix.
      properties:
        code:
          type: string
          description: A stable identifier you can match on.
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        statusCode:
          type: integer
        error:
          type: string
      required:
        - message
  responses:
    Unauthorized:
      description: The key is missing or not valid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            message: Authentication token is missing.
    Forbidden:
      description: The key does not have the scope this call needs.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 403
            message: This key cannot do that.
    NotFound:
      description: Nothing has that id.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: thread_not_found
            message: No conversation has that id.
    RateLimited:
      description: Too many requests. Wait, then try again.
      headers:
        Retry-After:
          description: Seconds to wait before trying again.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >
        Your API key, sent as `Authorization: Bearer <key>`. Create keys in the
        Cerium dashboard.

        Keep them on your servers only.

````