Reference / Settings

PUT /v1/applications/{id}/providers/oauth

PUT /v1/applications/{id}/providers/oauth
Secret API key operationId: upsert_oauth

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Path parameters

  • id string<uuid> required

    Application id

Request body · required

  • client_id string
  • client_secret string

    Plaintext secret; stored encrypted. Omit to keep the existing secret.

  • enabled boolean required
  • provider string required
  • scopes string[]
  • use_shared_dev_credentials boolean

Responses

200 Saved
{
  "data": {
    "client_id": "string",
    "enabled": false,
    "has_secret": false,
    "provider": "string",
    "scopes": [
      "string"
    ],
    "updated_at": "2026-01-15T09:30:00Z",
    "use_shared_dev_credentials": false
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
422 Production requires own credentials

Request

curl -X PUT "http://localhost:8080/v1/applications/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/providers/oauth" \
  -H "Content-Type: application/json" \
  -d '{
  "client_id": "string",
  "client_secret": "string",
  "enabled": false,
  "provider": "string",
  "scopes": [
    "string"
  ],
  "use_shared_dev_credentials": false
}'

Try it

live request
PUT http://localhost:8080/v1/applications/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/providers/oauth

Path parameters

Request body

application/json