Make decision
POST /v3/session/:sessionId/decision
This endpoint is part of the Decisions flow.
Path Parameters
- sessionId string required
Format: UUID
Example: c5674f4f-7e84-405c-a44b-c83736bb7209
Header Parameters
- Content-Type string
Possible values: [
application/json
] - Accept string
Possible values: [
application/json
] - Authorization string
Format: "Basic <base64(username:secret)>"
- application/json
Request Body
- decision string required
Possible values: [
allow
,reject
] - rejectionType string
Possible values: [
reject_session_with_error
,notify_user
]Required with { "decision": "reject" }.
"reject_session_with_error" will close the session and display a message in the client in an overlay.
"notify_user" will display a message in the client. hardError object
Required with { "rejectionType": "reject_session_with_error" }. Provide an error message that will be shown in an overlay in the client.
message string requiredPossible values:
<= 256 characters
softErrors object[]
Optional with { "rejectionType": "notify_user" }. Provide a list of error messages that will be shown to the user.
Array [message string required]
- 204
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringPossible values: [
INVALID_CREDENTIALS
,INVALID_DATA
,UNKNOWN
]message string
{
"error": {
"code": "INVALID_CREDENTIALS",
"message": "string"
}
}
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringPossible values: [
INVALID_CREDENTIALS
,INVALID_API_KEY
,AUTH_SECRET_EXPIRED
]message string
{
"error": {
"code": "INVALID_CREDENTIALS",
"message": "string"
}
}