POST
/
users
/
{userId}
/
actions
/
{action}
curl --request POST \
  --url https://api.authsignal.com/v1/users/{userId}/actions/{action} \
  --header 'Content-Type: application/json' \
  --data '{
  "redirectUrl": "https://yourapp.com/callback"
}'
{
  "state": "ALLOW",
  "url": "<string>",
  "token": "<string>",
  "isEnrolled": true,
  "idempotencyKey": "<string>",
  "allowedVerificationMethods": [
    "SMS"
  ],
  "enrolledVerificationMethods": [
    "SMS"
  ],
  "defaultVerificationMethod": "SMS",
  "ruleIds": [
    "<string>"
  ]
}

Path Parameters

userId
string
required

The ID of the user.

action
string
required

A short human-readable code which defines the action that the user is performing, e.g. signIn. This value will be displayed in the Authsignal Portal and can be used to configure rules for authentication events with differing risk profiles. Values are validated with the following regex: ^[a-zA-Z0-9_-]{(1, 64)}$.

Body

application/json

Response

200
application/json

OK

The response is of type object.