List BYOK credentials
GET
/__remote/api.vercel.com/ai-gateway/byok-credentials/listList BYOK credentials for an owner, optionally filtered by provider
Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { const result = await vercel.aiGateway.listAiGatewayByokCredentials({ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", });
console.log(result);}
run();Response
{ "credentials": [ { "active": "false", "createdAt": "123", "credential": "string", "credentialId": "example_id", "deleted": "false", "lastFourChars": "string", "modelMappings": [ { "customModelId": "example_id", "gatewayModelSlug": "string" } ], "name": "Example Name", "ownerId": "example_id", "providerSlug": "example_id", "rotatedAt": "123", "updatedAt": "123", "zeroDataRetention": "false" } ]}AuthorizationbearerToken
Default authentication mechanism
The owner ID to list credentials for. Ignored for customer tokens, which always list their own team.
Whether to include model mappings for each credential in the response