Register a flow callback endpoint
POST
/api/v4/ai/duo_workflows/flow_callbacks
Registers an HTTPS endpoint for Duo flow lifecycle callbacks. Reference the returned id via callback_hook_id when creating a flow. Secrets are never returned.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
url
required
HTTPS URL that receives callbacks
string
Example
https://autoflow.example.com/duo/callbacksname
A label for this endpoint
string
signing_token
HMAC signing secret in whsec_
string
token
Optional shared secret sent verbatim as the X-Gitlab-Token header. Not returned.
string
Responses
Section titled “Responses”Created
Media typeapplication/json
object
id
integer
url
string
name
string
signing_token_set
boolean
token_set
boolean
created_at
string format: date-time
Example
{ "id": 1, "url": "https://autoflow.example.com/duo/callbacks", "name": "AutoFlow", "signing_token_set": true, "token_set": false, "created_at": "2026-07-22T11:37:00Z"}Validation failed
Unauthorized
Forbidden