Skip to content
Skip to Content
Coder Docs

List AI Gateway providers

GET
/api/v2/ai-gateway/providers

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/providers" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
[  {    "display_name": "string",    "icon": "string",    "name": "string",    "type": "openai"  }]