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

# List organization API keys

> Lists the API keys of every user of the organization, the owner's included, newest first, with each key's user, status, and when it was last used. Deleted keys and the keys of blocked users are not listed. API keys are created in Mission Control Portal or at `POST /v2/api_keys`, and a key's value is never returned here.

Only the organization owner can call this endpoint. Its action is `organization_api_keys.read`. Other users and service account tokens get `403`.



## OpenAPI

````yaml /openapi/source/external/iam/iam.json get /iam/api_keys
openapi: 3.1.0
info:
  title: Telnyx API
  version: 1.0.0
  description: >-
    Identity and Access Management (IAM) decides what the users and service
    accounts of an organization may do. The organization writes roles of allow
    and deny statements over actions, gives the roles to users and service
    accounts with grants, and enables IAM so that the grants decide. This API
    manages roles and their statements, grants, the IAM setting, service
    accounts and their tokens, and the organization's API keys and their scopes.
    It also reads the action catalog, explains and simulates decisions, and
    lists access logs.


    Only the organization owner can call these endpoints. Any other user, and
    any service account token, gets `403`. Each endpoint declares an action,
    named in its description. Once IAM is enabled, a scope on one of the owner's
    API keys narrows that key, so the key can call an endpoint only when its
    scope allows the endpoint's action.


    See [IAM](https://developers.telnyx.com/docs/iam) for how decisions are
    made.
  contact:
    email: support@telnyx.com
  x-latency-category: interactive
  x-endpoint-cost: light
servers:
  - url: https://api.telnyx.com/v2
    description: Telnyx API v2
security:
  - bearerAuth: []
tags:
  - name: IAM Roles
    description: >-
      Named sets of statements that the organization gives to users and service
      accounts with grants.
  - name: IAM Role Statements
    description: The statements of a role, each allowing or denying a list of actions.
  - name: IAM Grants
    description: Which users and service accounts hold which roles.
  - name: IAM Actions
    description: The catalog of actions that routes declare and statements allow or deny.
  - name: IAM Settings
    description: Whether the organization has enabled IAM.
  - name: IAM Service Accounts
    description: Principals for workloads, such as servers, pipelines, and integrations.
  - name: IAM Service Account Tokens
    description: The credentials a service account authenticates with.
  - name: IAM API Keys
    description: The API keys of every user of the organization, the owner's included.
  - name: IAM API Key Scopes
    description: Statements on one API key that narrow what it may do.
  - name: IAM Decisions
    description: >-
      What IAM decides for a principal, explained or simulated without changing
      anything.
  - name: IAM Access Logs
    description: >-
      The requests IAM allowed or denied, with the reasons and the roles behind
      them.
paths:
  /iam/api_keys:
    get:
      tags:
        - IAM API Keys
      summary: List organization API keys
      description: >-
        Lists the API keys of every user of the organization, the owner's
        included, newest first, with each key's user, status, and when it was
        last used. Deleted keys and the keys of blocked users are not listed.
        API keys are created in Mission Control Portal or at `POST
        /v2/api_keys`, and a key's value is never returned here.


        Only the organization owner can call this endpoint. Its action is
        `organization_api_keys.read`. Other users and service account tokens get
        `403`.
      operationId: ListIamApiKeys
      parameters:
        - name: filter[status]
          in: query
          required: false
          description: >-
            Keeps the keys with these statuses. One value, or several separated
            by commas.
          schema:
            type: array
            items:
              type: string
              enum:
                - active
                - inactive
          style: form
          explode: false
          example:
            - active
        - name: filter[status][ne]
          in: query
          required: false
          description: Leaves out the keys with this status.
          schema:
            type: string
            enum:
              - active
              - inactive
          example: inactive
        - name: filter[user_id]
          in: query
          required: false
          description: Keeps the keys of this user.
          schema:
            type: string
          example: b1d7e2c4-9a3f-4e58-8c61-0f2a7d5e9b13
        - name: page[number]
          in: query
          required: false
          description: The page to return, counting from 1.
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: page[size]
          in: query
          required: false
          description: The number of results per page.
          schema:
            type: integer
            minimum: 1
            maximum: 250
            default: 25
      responses:
        '200':
          description: One page of API keys.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IamApiKeysListResponse'
              example:
                data:
                  - id: KEY019A6C2E5B7D4F1A8C3E9B0D2F4A6C8E
                    user_id: b1d7e2c4-9a3f-4e58-8c61-0f2a7d5e9b13
                    organization_id: 6e9d4c3a-2f8b-4a71-9c05-3b8e1f2d7a64
                    status: active
                    tags:
                      - provisioning
                    record_type: api_key
                    expires_at: null
                    created_at: '2026-11-18T09:30:00.000000Z'
                    updated_at: '2026-11-18T09:30:00.000000Z'
                    last_used_at: '2026-11-25T08:41:07.000000Z'
                  - id: KEY019A4B1D3C6E8F0A2B4C6D8E0F1A3B5C
                    user_id: 6e9d4c3a-2f8b-4a71-9c05-3b8e1f2d7a64
                    organization_id: 6e9d4c3a-2f8b-4a71-9c05-3b8e1f2d7a64
                    status: inactive
                    tags: []
                    record_type: api_key
                    expires_at: '2027-01-31T00:00:00.000000Z'
                    created_at: '2026-10-02T13:12:44.000000Z'
                    updated_at: '2026-11-20T17:45:03.000000Z'
                    last_used_at: '2026-11-19T22:10:51.000000Z'
                meta:
                  page_number: 1
                  page_size: 25
                  total_pages: 1
                  total_results: 2
        '401':
          $ref: '#/components/responses/IamUnauthorized'
        '403':
          description: >-
            The caller is not the organization owner, or the scope of the
            owner's API key does not allow `organization_api_keys.read`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IamErrors'
              examples:
                not_owner:
                  summary: The caller is not the organization owner
                  value:
                    errors:
                      - code: '10010'
                        title: Authorization failed
                        detail: >-
                          You do not have permission to perform the requested
                          action on the specified resource or resources.
                        source:
                          pointer: /
                        meta:
                          url: >-
                            https://developers.telnyx.com/docs/overview/errors/10010
                key_scope:
                  summary: The scope of the owner's API key does not allow the action
                  value:
                    errors:
                      - code: '10010'
                        title: Authorization failed
                        detail: >-
                          the credential's scope does not allow
                          organization_api_keys.read
                        source:
                          pointer: /
                        meta:
                          url: >-
                            https://developers.telnyx.com/docs/overview/errors/10010
        '422':
          description: Invalid paging or filter parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IamErrors'
              example:
                errors:
                  - code: '10033'
                    title: Value outside of range
                    detail: The 'size' parameter must be less than or equal to 250.
                    source:
                      pointer: /page/size
                      value: 500
                    meta:
                      url: https://developers.telnyx.com/docs/overview/errors/10033
components:
  schemas:
    IamApiKeysListResponse:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/IamApiKey'
        meta:
          $ref: '#/components/schemas/IamPaginationMeta'
    IamErrors:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/IamError'
    IamApiKey:
      type: object
      required:
        - id
        - user_id
        - organization_id
        - status
        - tags
        - record_type
        - expires_at
        - created_at
        - updated_at
        - last_used_at
      properties:
        id:
          type: string
          description: >-
            The API key's ID, starting with `KEY`. It is the part of the key
            before the `_`.
        user_id:
          type: string
          description: The user the key belongs to.
        organization_id:
          type: string
          description: The organization the key belongs to.
        status:
          type: string
          enum:
            - active
            - inactive
            - expired
            - deleted
          description: The key's status.
        tags:
          type: array
          items:
            type: string
          description: Labels the key's user set on it.
        record_type:
          type: string
          enum:
            - api_key
          description: Identifies the type of the resource.
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the key expires. `null` for a key that never expires.
        created_at:
          type: string
          format: date-time
          description: When the key was created.
        updated_at:
          type: string
          format: date-time
          description: When the key was last changed.
        last_used_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the key last authenticated a request. `null` until it is used.
    IamPaginationMeta:
      type: object
      required:
        - page_number
        - page_size
        - total_pages
        - total_results
      properties:
        page_number:
          type: integer
          description: The page returned, counting from 1.
        page_size:
          type: integer
          description: The number of results per page.
        total_pages:
          type: integer
          description: The number of pages.
        total_results:
          type: integer
          description: The number of results across all pages.
    IamError:
      type: object
      required:
        - code
        - title
      properties:
        code:
          type: string
          description: The Telnyx error code.
        title:
          type: string
          description: A short summary of the error.
        detail:
          type: string
          description: What went wrong.
        source:
          type: object
          description: The part of the request that caused the error.
          properties:
            pointer:
              type: string
              description: A JSON pointer to the field that caused the error.
            value:
              description: The value that caused the error.
        meta:
          type: object
          properties:
            url:
              type: string
              format: uri
              description: The documentation page for the error code.
            denied_role_ids:
              type: array
              items:
                type: string
                format: uuid
              description: >-
                The granted roles whose deny statements refused the request,
                when a role refused it.
  responses:
    IamUnauthorized:
      description: The request has no valid credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/IamErrors'
          example:
            errors:
              - code: '10009'
                title: Authentication failed
                detail: Could not find any usable credentials in the request.
                source:
                  pointer: /
                meta:
                  url: https://developers.telnyx.com/docs/overview/errors/10009
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````