OAuth
OAuth API endpoints
Path Parameters
provider*string
Match
^[A-Za-z0-9_-]+$Length
1 <= length <= 255Query Parameters
code?string
state?string
error?string
error_description?string
Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/oauth/string/callback"Empty
{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}Query Parameters
code?string
state?string
error?string
error_description?string
Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/oauth/callback"Empty
Empty
{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
curl -X POST "http://localhost:3013/api/oauth/keep-warm/codex"{
"results": [
{
"slot": 0,
"keySuffix": "string",
"outcome": "warm"
}
]
}Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
curl -X GET "http://localhost:3013/api/oauth/redirect-uri"{
"redirectUri": "string"
}Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
key*string
Match
^[a-zA-Z0-9._:-]{1,200}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X DELETE "http://localhost:3013/api/oauth/refresh-locks/string" \ -H "Content-Type: application/json" \ -d '{ "owner": "string" }'Empty
{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
key*string
Match
^[a-zA-Z0-9._:-]{1,200}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/oauth/refresh-locks/string" \ -H "Content-Type: application/json" \ -d '{ "ttlMs": 300000 }'{
"owner": "string"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}