SyncUpdate OAuth return origins

Update OAuth return origins

Replace the set of origins the OAuth consent flow may redirect the browser to. POST /oauth/initiate rejects any return_url whose origin is not in this list, which is what stops the unauthenticated callback from being used as an open redirector.

Origins only — https://portal.example.com, no path. A supplied URL is normalised to its origin, duplicates are collapsed, and non-http(s) or credential-bearing values are rejected. The list starts empty, meaning no return_url is accepted at all until you set it (the callback then renders its own terminal page). Requires an agency key (ak_).

Works on an agency that has never provisioned: the config row is created if it does not exist. That row unlocks nothing on its own — POST /oauth/initiate still requires an active provisioned workspace — it just means you can register return origins before provisioning rather than after.

curl -X PATCH "https://mythic-analytics.gulp.workers.dev/client/v1/airbyte/config" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "oauth_return_origins": [
    "https://portal.example.com"
  ]
}'
{
  "success": true,
  "data": {
    "oauth_return_origins": [
      "example_string"
    ]
  }
}
PATCH
/config
PATCH
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Agency key as bearer token, format Bearer ak_.... Grants full read-write access scoped to the agency. Agency-wide scoped keys (mcp_ with no fixed location) are accepted too and need airbyte:read or airbyte:write; a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.

Agency key as bearer token, format Bearer ak_.... Grants full read-write access scoped to the agency. Agency-wide scoped keys (mcp_ with no fixed location) are accepted too and need airbyte:read or airbyte:write; a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.
Bearer Token
Bearer Tokenstring
Required

Location secret key as bearer token, format Bearer sk_.... Grants read-only access; the agency is resolved from the location. Write endpoints return 403.

Location secret key as bearer token, format Bearer sk_.... Grants read-only access; the agency is resolved from the location. Write endpoints return 403.
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Agency key as bearer token, format Bearer ak_.... Grants full read-write access scoped to the agency. Agency-wide scoped keys (mcp_ with no fixed location) are accepted too and need airbyte:read or airbyte:write; a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.

header
Authorizationstring
Required

Bearer token. Location secret key as bearer token, format Bearer sk_.... Grants read-only access; the agency is resolved from the location. Write endpoints return 403.

Responses

successboolean
dataobject