Skip to main content
POST
Issue a shopper agent grant

Authorizations

Authorization
string
header
required

Server-side scoped Ignyt API key.

Headers

authorization
string | null
x-ignite-app-id
string | null

Body

application/json
oauth_client_id
string
required
Required string length: 1 - 200
oauth_subject
string
required
Required string length: 1 - 200
scopes
string[]
required
Required array length: 1 - 4 elements
shopper_ref
string
required
Required string length: 1 - 120
expires_at
string<date-time> | null

Optional earlier absolute deadline; never extends ttl_seconds.

ttl_seconds
integer
default:3600
Required range: 60 <= x <= 86400

Response

The issued grant with its one-time agent credential.

app_id
string
required

App that issued the grant.

credential
string
required

Bearer credential for the agent (ign_ag_ prefix). Returned only in this response; store it securely and pass it to the agent. It cannot be retrieved again.

environment
string
required

Environment the grant acts in: sandbox or live.

expires_at
string
required

ISO 8601 time after which the credential stops working.

id
string
required

Agent grant ID (agt_ prefix).

oauth_client_id
string
required

OAuth client ID of the agent.

oauth_subject
string
required

Shopper subject from your OAuth authorization.

scopes
string[]
required

Scopes delegated to the agent.

shopper_ref
string
required

Your reference for the shopper the agent acts for.

status
string
required

active, or revoked once revoked.