openapi: 3.2.0 info: version: 2.57.0 title: Netlify's API documentation AI Gateway API description: Netlify is a hosting service for the programmable web. termsOfService: https://www.netlify.com/legal/terms-of-use/ x-logo: url: netlify-logo.png href: https://www.netlify.com/docs/ altText: Netlify servers: - url: https://api.netlify.com/api/v1 security: - netlifyAuth: [] tags: - name: AI Gateway paths: /ai-gateway/providers: get: operationId: getAIGatewayProviders tags: - AI Gateway security: [] responses: '200': description: The mapping of providers and supported models content: application/json: schema: type: object properties: providers: additionalProperties: type: object properties: token_env_var: type: string url_env_var: type: string models: type: array items: type: string default: description: error content: application/json: schema: type: object required: - message properties: code: type: integer format: int64 message: type: string summary: Get AI gateway providers x-summary-source: derived /sites/{site_id}/ai-gateway/token: parameters: - name: site_id in: path required: true description: The site ID schema: type: string get: operationId: getAIGatewayToken tags: - AI Gateway responses: '200': description: AI Gateway token for the site content: application/json: schema: type: object properties: token: type: string description: The AI Gateway authentication token url: type: string description: AI gateway base url expires_at: type: integer format: int64 description: Unix timestamp when the token expires '404': description: AI Gateway not available for this site default: description: error content: application/json: schema: type: object required: - message properties: code: type: integer format: int64 message: type: string description: Returns an AI Gateway token for a specific site summary: Get AI gateway token x-summary-source: derived /accounts/{account_id}/ai-gateway/token: parameters: - name: account_id in: path required: true description: The account ID schema: type: string get: operationId: getAccountAIGatewayToken tags: - AI Gateway responses: '200': description: AI Gateway token for the account content: application/json: schema: type: object properties: token: type: string description: The AI Gateway authentication token url: type: string description: AI gateway base url expires_at: type: integer format: int64 description: Unix timestamp when the token expires '404': description: AI Gateway not available for this account default: description: error content: application/json: schema: type: object required: - message properties: code: type: integer format: int64 message: type: string description: Returns an AI Gateway token scoped to an account summary: Get account AI gateway token x-summary-source: derived components: securitySchemes: netlifyAuth: type: oauth2 flows: implicit: scopes: {} authorizationUrl: https://app.netlify.com/authorize externalDocs: url: https://www.netlify.com/docs/api/ description: Online documentation x-tagGroups: - name: OAuth tags: - ticket - accessToken - name: User accounts tags: - user - accountMembership - member - accountType - paymentMethod - auditLog - name: Site tags: - site - environmentVariables - file - metadata - purge - snippet - name: Domain names tags: - dnsZone - sniCertificate - name: Deploys tags: - deploy - deployedBranch - deployKey - name: Builds tags: - build - buildLogMsg - name: Dev servers tags: - devServer - name: Webhooks and notifications tags: - hook - hookType - buildHook - devServerHook - name: Services tags: - service - serviceInstance - name: Functions tags: - function - name: Database tags: - database - name: Forms tags: - form - submission - name: Split tests tags: - splitTest - name: Large media tags: - asset - assetPublicSignature