Skip to content
Skip to Content
Coder Docs

List AI Gateway keys

GET
/api/v2/ai-gateway/keys

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
[index: integer]?

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/ai-gateway/keys" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
[  {    "created_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "key_prefix": "string",    "last_heartbeat_at": "2019-08-24T14:15:22Z",    "name": "string"  }]