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

# GET /sites/{site_id}/ai-gateway/token

`GET /sites/{site_id}/ai-gateway/token`

Returns an AI Gateway token for a specific site

## Response `200`

AI Gateway token for the site

- 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 site
- `default` — error

## Changes

- **2025-11-05** `3f5e13b2c6c0` — 1 info
  - endpoint added
- **2025-10-01** `dd4e48196663` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/netlify/apis/netlify-s-api-documentation/changes/sites/:site_id/ai-gateway/token/get.md)

---

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