Skip to main content
POST
Typescript (SDK)

Authorizations

Authorization
string
header
required

Authenticate every request with a Service Access Token or Organization Token. Set the token value in the Authorization: Bearer <token> header.

Service Access Token: Scoped to a single service. Use when automating service-level configuration or runtime flows.

Organization Token: Scoped to the organization; inherits permissions across services. Use for org-wide automation or when managing multiple services programmatically.

Both token types are issued by the Authlete console or provisioning APIs.

Path Parameters

serviceId
string
required

A service ID.

Body

application/json
accessToken
string

The access token that came along with the credential request.

order
object
denied
boolean

Set to true to signal that the credential issuer is declining to issue the requested credential. When set, the response will contain "error":"credential_request_denied" and the action in the response will be BAD_REQUEST.

interval
integer

The minimum polling interval in seconds for deferred credential issuance.

Response

resultCode
string

The code which represents the result of the API call.

resultMessage
string

A short message which explains the result of the API call.

action
enum<string>

The next action that the implementation of the credential endpoint should take.

Available options:
OK,
OK_JWT,
ACCEPTED,
ACCEPTED_JWT,
BAD_REQUEST,
UNAUTHORIZED,
FORBIDDEN,
INTERNAL_SERVER_ERROR,
CALLER_ERROR
responseContent
string

The content of the response that the implementation of the credential endpoint should return.

transactionId
string

The issued transaction ID.