Skip to main content
POST
Assign an authorized account

Authorizations

Authorization
string
header
required

Darwin API keys begin with darwin_ and are created in Developer settings.

Path Parameters

aiId
string
required
connectionId
string
required

Body

application/json
targetKind
enum<string>
required
Available options:
AI,
LISTING,
TRANSACTION
targetId
string
required
Maximum string length: 200
retention
enum<string>
required
Available options:
REQUEST_ONLY,
SAVED_WITH_CONSENT
scopes
string[]
required
Maximum array length: 100
Maximum string length: 200
expiresAt
string<date-time>
consented
boolean

Must be true for SAVED_WITH_CONSENT after the user completes Darwin-hosted consent.

Response

The scoped account assignment.

assignment
object
required