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

# Client libraries

> Generate a typed client from the OpenAPI spec — there are no official SDKs yet.

CreatorAudit does not ship official SDKs yet. The API is fully described by an
OpenAPI 3 document, so the recommended path is to generate a typed client for
your language from that spec.

## Get the OpenAPI spec

The spec is downloadable from the [API reference](/api-reference/introduction),
and `GET /v2/meta` advertises its location so tools can discover it
programmatically:

```bash theme={null}
curl https://api.creatoraudit.com/v2/meta
# -> { "data": { "openapi_url": "/v2/openapi.json", "docs_url": "/v2/docs", ... } }
```

That resolves to:

```
https://api.creatoraudit.com/v2/openapi.json
```

<Note>
  `GET /v2/meta` is unauthenticated, so you can fetch the spec URL before you wire up
  credentials. The generated client still needs your API key at request time — see
  [Authentication](/api-reference/authentication).
</Note>

## Generate a client

Point your generator at the spec URL. A few common options:

<Tabs>
  <Tab title="TypeScript (types only)">
    [`openapi-typescript`](https://www.npmjs.com/package/openapi-typescript) emits
    types from the spec — pair it with `openapi-fetch` for a tiny typed client.

    ```bash theme={null}
    npx openapi-typescript https://api.creatoraudit.com/v2/openapi.json \
      -o src/creatoraudit.d.ts
    ```
  </Tab>

  <Tab title="TypeScript (full client)">
    [`openapi-generator`](https://openapi-generator.tech/) emits a full client with
    request methods and models.

    ```bash theme={null}
    npx @openapitools/openapi-generator-cli generate \
      -i https://api.creatoraudit.com/v2/openapi.json \
      -g typescript-fetch \
      -o ./creatoraudit-client
    ```
  </Tab>

  <Tab title="Python">
    [`openapi-python-client`](https://pypi.org/project/openapi-python-client/) emits a
    typed, `httpx`-based async client.

    ```bash theme={null}
    uvx openapi-python-client generate \
      --url https://api.creatoraudit.com/v2/openapi.json
    ```
  </Tab>
</Tabs>

<Tip>
  Pin your generator version and regenerate when the spec changes. The spec carries its
  own `version`; new fields are additive within `v2`. See
  [Versioning](/api-reference/versioning).
</Tip>

## Prefer to write it yourself?

A generated client isn't required — the API is plain HTTP with a bearer token. If
you'd rather call it directly, start from the hand-written examples:

<Columns cols={3}>
  <Card title="Python" href="/examples/python" icon="python">
    `httpx` snippets for auth, pagination, and metrics.
  </Card>

  <Card title="TypeScript" href="/examples/typescript" icon="js">
    `fetch`-based requests with typed responses.
  </Card>

  <Card title="cURL" href="/examples/curl" icon="terminal">
    Copy-paste requests for every common call.
  </Card>
</Columns>

Building an agent or tool integration? The spec also drives tool generation — see
[Tool use](/agents/tool-use).
