Skip to navigation

Register allowed callback origin

Registers an origin (scheme and host, plus port if any). A path, query or fragment in the value is dropped. HTTPS origins and custom app schemes such as myapp:// are accepted; plain HTTP is accepted only for http://localhost:PORT. Registering an origin that is already registered returns the existing origin with a 200, so retries are safe.

Authentication

AuthorizationBearer

Token-based authentication with required prefix “Bearer”

Request

This endpoint expects an object.
originstringRequired<=2048 characters

Response

The origin was already registered.
idstringRead-onlyformat: "uuid"
originstring<=2048 characters

Allowed origin for callback URLs (e.g., ‘https://myapp.com’ or ‘myapp://’). The callback_url’s scheme+host must match this origin.

created_atdatetimeRead-only
modified_atdatetimeRead-only

Errors

400
Bad Request Error