Skip to main content
POST
Create a partner OAuth application
Register an OAuth application. Returns the client secret once. Usually called by Swapnice during onboarding with an app registration key. Store client_secret immediately.

Authorizations

x-swapnice-admin-key
string
header
required

Administrative registration key for creating partner applications.

Headers

Idempotency-Key
string
required

Required for mutating requests. Replays with the same key and payload hash return the original logical result; replays with a different payload hash return 409.

Required string length: 16 - 255
X-Request-Id
string

Optional caller-supplied correlation ID echoed in responses and errors.

Body

application/json
name
string
required
redirect_uris
string<uri>[]
required
Minimum array length: 1
client_type
enum<string>
Available options:
public,
confidential
allowed_scopes
string[]
Minimum array length: 1
scopes
string[]

Backwards-compatible alias for allowed_scopes.

Minimum array length: 1
Available options:
account_linking,
personalization,
analytics,
support,
event_enrichment,
profile_resolution,
measurement
webhook_default_url
string<uri>

Response

Application created.

app_id
string
required
client_id
string
required
client_secret
string
required

One-time client secret.

name
string
required
redirect_uris
string<uri>[]
required
scopes
string[]
required
created_at
string<date-time>
required