ZITADEL Docs
APIsCore ResourcesV1Organization Objects

SetTriggerActions

POST
/flows/{flow_type}/trigger/{trigger_type}

Path Parameters

flow_type*string

id of the flow type. Following flows are currently allowed:

  • External Authentication: FLOW_TYPE_EXTERNAL_AUTHENTICATION or 1
  • Internal Authentication: 3
  • Complement Token: 2
  • Complement SAML Response: 4
trigger_type*string

id of the trigger type. Following triggers are currently allowed:

  • External Authentication:
    • Post Authentication: TRIGGER_TYPE_POST_AUTHENTICATION or 1
    • Pre Creation: TRIGGER_TYPE_PRE_CREATION or 2
    • Post Creation: TRIGGER_TYPE_POST_CREATION or 3
  • Internal Authentication:
    • Post Authentication: TRIGGER_TYPE_POST_AUTHENTICATION or 1
    • Pre Creation: TRIGGER_TYPE_PRE_CREATION or 2
    • Post Creation: TRIGGER_TYPE_POST_CREATION or 3
  • Complement Token:
    • Pre Userinfo Creation: 4
    • Pre Access Token Creation: 5
  • Complement SAML Response:
    • Pre SAML Response Creation: 6

Request Body

application/json

actionIds?array<>
[key: string]?never

Response Body

application/json

curl -X POST "https://loading/flows/string/trigger/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "sequence": 0,
    "creationDate": "2023-01-15T01:30:15.01Z",
    "changeDate": "2023-01-15T01:30:15.01Z",
    "resourceOwner": "string"
  }
}

Was this page helpful?