SLNG Account API

Inspect the authenticated account and organization.

OpenAPI Specification

slng-account-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: SLNG Voice Agents Account API
  version: 1.0.0
  description: 'Public API for managing Voice Agents, dispatching outbound calls, and creating web (non-telephony) sessions.


    Base URL: `https://api.agents.slng.ai`

    '
  contact:
    name: SLNG Support
    email: support@slng.ai
servers:
- url: https://api.agents.slng.ai
  description: Production
security:
- bearerAuth: []
tags:
- name: Account
  description: Inspect the authenticated account and organization.
paths:
  /v1/me:
    get:
      summary: Get current account
      description: Return the account, organization, and API key associated with the bearer token in the request. Use this to confirm which key is in use and which organization and plan tier it belongs to.
      operationId: meGet
      tags:
      - Account
      responses:
        '200':
          description: The authenticated account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
              example:
                name: Bruce Wayne
                email: batman@wayne.com
                org_id: 7c3e9a14-2b6f-4d80-9e51-1a2b3c4d5e6f
                org_name: Wayne Corp
                api_key_label: batcave laptop
                tier: hobby
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    InternalError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Internal server error
    Forbidden:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: API key id not found
  schemas:
    Error:
      type: object
      description: Error envelope. A short, user-presentable string only — no internal codes, stack traces, or upstream raw text.
      required:
      - error
      additionalProperties: false
      properties:
        error:
          type: string
    Account:
      type: object
      description: The account associated with the authenticated API key.
      required:
      - name
      - email
      - org_id
      - org_name
      - api_key_label
      - tier
      properties:
        name:
          type: string
          description: Display name of the account owner.
          example: Bruce Wayne
        email:
          type: string
          format: email
          description: Email address of the account owner.
          example: batman@wayne.com
        org_id:
          type: string
          format: uuid
          description: Unique identifier of the organization the account belongs to.
          example: 7c3e9a14-2b6f-4d80-9e51-1a2b3c4d5e6f
        org_name:
          type: string
          description: Display name of the organization.
          example: Wayne Corp
        api_key_label:
          type: string
          description: Label of the API key used to authenticate the request.
          example: batcave laptop
        tier:
          type: string
          description: Plan tier of the organization.
          example: hobby
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key