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

# List child keys

> List the child API keys minted under your ScripX key, masked, with label, scopes and status for each sub-account.

Every child key minted under yours, masked. Requires no extra scope beyond a valid key. Cursor-paginated (`limit` default 100, max 500).

### Request example

```bash theme={"dark"}
curl "https://api.scripxhq.com/v1/keys" \
  -H "X-ScripX-Key: <YOUR_API_KEY>"
```

### Response example

```json theme={"dark"}
{
  "keys": [
    {
      "key_id": "key_01J01…",
      "label": "pricing-service",
      "key_prefix": "scripx_live_child",
      "scopes": ["quote", "market:read"],
      "status": "active"
    }
  ],
  "count": 1
}
```

Raw key values are never listed; only the prefix survives for identification.

### Errors

* `401` / `429`, the standard [auth errors](/authentication#authentication-errors).

**Terms used here:** [API key](/annexure/terminology#api-key), [child key](/annexure/terminology#child-key), [scope](/annexure/terminology#scope), [pagination](/annexure/terminology#cursor-pagination). Full list in the [terminology annexure](/annexure/terminology).

### Next steps

* [Revoke](/api-reference/keys/revoke)


## OpenAPI

````yaml GET /v1/keys
openapi: 3.1.0
info:
  title: ScripX Partner API
  version: 1.2.0
  description: >-
    Automate duty-credit-scrip trading: quote, order, positions, market,
    webhooks. Auth: `X-ScripX-Key: scripx_live_…`. Money = integer paise; price
    = bps of face.
  contact:
    name: ScripX API Support
    email: amin@eximfiles.io
    url: https://scripxhq.com
servers:
  - url: https://api.scripxhq.com
    description: >-
      Production and sandbox share one host; a scripx_test_ key selects the
      sandbox.
security:
  - ApiKeyAuth: []
tags:
  - name: Firms
    description: >-
      client-firm lifecycle: register, verify, authorize, credits, update,
      offboard
  - name: Trading
    description: quote, orders, positions, market
  - name: Group
    description: intra-group netting + positions (enterprise/broker)
  - name: Cross
    description: 'broker cross-desk: block deals + intra-group transfers'
  - name: Webhooks
    description: event subscriptions + delivery
  - name: Account
    description: usage + metering
  - name: Keys
    description: self-serve scoped child keys (sub-accounts)
paths:
  /v1/keys:
    get:
      tags:
        - Keys
      summary: List your child keys (masked)
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 100
            maximum: 500
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: opaque offset from a prior response's next_cursor
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChildKeyList'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ChildKeyList:
      type: object
      properties:
        keys:
          type: array
          items:
            type: object
        count:
          type: integer
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: stable machine code
          enum:
            - bad_request
            - unauthorized
            - forbidden
            - not_found
            - conflict
            - unprocessable
            - rate_limited
            - internal
        message:
          type: string
        detail:
          type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-ScripX-Key
      description: >-
        Your API key, e.g. `scripx_live_…`. Bound to one firm; tenant isolation
        is enforced.

````