---
title: "GET /accounts/{account_id}/ai-gateway/token"
method: GET
path: "/accounts/{account_id}/ai-gateway/token"
tags: ["aiGateway"]
---

# GET /accounts/{account_id}/ai-gateway/token

`GET /accounts/{account_id}/ai-gateway/token`

Returns an AI Gateway token scoped to an account

## Response `200`

AI Gateway token for the account

- AiGatewayToken
  - `token` string — The AI Gateway authentication token
  - `url` string — AI gateway base url
  - `expires_at` integer — Unix timestamp when the token expires

## Other responses

- `404` — AI Gateway not available for this account
- `default` — error

---

[API](https://skmtc.net/netlify/apis/netlify-s-api-documentation.md) · [All operations](https://skmtc.net/netlify/apis/netlify-s-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netlify/netlify-s-api-documentation/revisions/71540d1b5d9d/schema)
