agent-swarm.devagent-swarm.dev

OAuth

OAuth API endpoints

GET
/api/oauth/{provider}/callback

Path Parameters

provider*string
Match^[A-Za-z0-9_-]+$
Length1 <= length <= 255

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/string/callback"
Empty
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "property1": null,
  "property2": null
}
GET
/api/oauth/callback

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
}
POST
/api/oauth/keep-warm/codex

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"
    }
  ]
}
GET
/api/oauth/redirect-uri

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"
}
DELETE
/api/oauth/refresh-locks/{key}

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
}
POST
/api/oauth/refresh-locks/{key}

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
}