{"openapi":"3.0.3","info":{"title":"flow2act API","description":"Versioned approval flows, runs, gate decisions and operational probes.","version":"0.0.0"},"components":{"securitySchemes":{"flow2actAccessToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"IntegrationKey":{"type":"http","scheme":"bearer","bearerFormat":"fg_sk_..."},"StripeSignature":{"type":"apiKey","in":"header","name":"Stripe-Signature"},"EmailIngressSignature":{"type":"apiKey","in":"header","name":"flow2act-Signature"},"TestReceiverToken":{"type":"apiKey","in":"header","name":"X-flow2act-Test-Token"}},"schemas":{"Error":{"type":"object","required":["type","title","status","detail","instance","error","message","requestId"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":400,"maximum":599},"detail":{"type":"string"},"instance":{"type":"string","format":"uri"},"error":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"violations":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"location":{"type":"string"},"path":{"type":"string"},"code":{"type":"string"}}}}}}}},"paths":{"/health":{"get":{"tags":["Operations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["service","status","version"],"properties":{"service":{"type":"string"},"status":{"type":"string"},"version":{"type":"string"}}}}}}}}},"/ready":{"get":{"tags":["Operations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["service","status","dependencies"],"properties":{"service":{"type":"string"},"status":{"type":"string"},"dependencies":{"type":"object","properties":{"database":{"type":"string"}},"required":["database"]}}}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["service","status","dependencies"],"properties":{"service":{"type":"string"},"status":{"type":"string"},"dependencies":{"type":"object","properties":{"database":{"type":"string"}},"required":["database"]}}}}}}}}},"/v1":{"get":{"tags":["API"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"}}}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/auth/token":{"post":{"summary":"Obtain or refresh a flow2act access token","tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"grantType":{"type":"string","enum":["password"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":1,"maxLength":256}},"required":["grantType","email","password"],"additionalProperties":false},{"type":"object","properties":{"grantType":{"type":"string","enum":["refresh_token"]},"refreshToken":{"type":"string","minLength":1,"maxLength":4096}},"required":["grantType","refreshToken"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["authenticated"]},"tokenType":{"type":"string","enum":["Bearer"]},"accessToken":{"type":"string","minLength":1},"expiresIn":{"type":"integer","minimum":1,"maximum":9007199254740991},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"refreshToken":{"type":"string","minLength":1}},"required":["status","tokenType","accessToken","expiresIn","expiresAt"]},{"type":"object","properties":{"status":{"type":"string","enum":["challenge_required"]},"challenge":{"type":"string","enum":["NEW_PASSWORD_REQUIRED","SMS_MFA","SOFTWARE_TOKEN_MFA","EMAIL_OTP"]},"challengeToken":{"type":"string"},"expiresIn":{"type":"number","enum":[180]}},"required":["status","challenge","challengeToken","expiresIn"]}]}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/auth/challenge":{"post":{"summary":"Complete a flow2act authentication challenge","tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challengeToken":{"type":"string","minLength":1,"maxLength":12000},"newPassword":{"type":"string","minLength":1,"maxLength":256},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["challengeToken"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["authenticated"]},"tokenType":{"type":"string","enum":["Bearer"]},"accessToken":{"type":"string","minLength":1},"expiresIn":{"type":"integer","minimum":1,"maximum":9007199254740991},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"refreshToken":{"type":"string","minLength":1}},"required":["status","tokenType","accessToken","expiresIn","expiresAt"]},{"type":"object","properties":{"status":{"type":"string","enum":["challenge_required"]},"challenge":{"type":"string","enum":["NEW_PASSWORD_REQUIRED","SMS_MFA","SOFTWARE_TOKEN_MFA","EMAIL_OTP"]},"challengeToken":{"type":"string"},"expiresIn":{"type":"number","enum":[180]}},"required":["status","challenge","challengeToken","expiresIn"]}]}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/password/reset":{"post":{"tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":128,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"locale":{"type":"string","maxLength":35}},"required":["email"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"type":"boolean"}},"required":["sent"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/password/reset/confirm":{"post":{"tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":128,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"code":{"type":"string","pattern":"^[0-9]{6}$"},"password":{"type":"string","minLength":14,"maxLength":256,"pattern":"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9\\s])\\S+$"}},"required":["email","code","password"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"changed":{"type":"boolean"}},"required":["changed"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/registration":{"post":{"tags":["Accounts"],"description":"Public registration is closed in production before launch. Returns 403 REGISTRATION_DISABLED without account or email side effects.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"email":{"type":"string","maxLength":128,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"displayName":{"type":"string","minLength":1,"maxLength":120},"password":{"type":"string","minLength":14,"maxLength":256,"pattern":"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9\\s])\\S+$"}},"required":["email","displayName","password"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"confirmed":{"type":"boolean"}},"required":["confirmed"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/registration/confirm":{"post":{"tags":["Accounts"],"description":"Public registration is closed in production before launch. Returns 403 REGISTRATION_DISABLED without account or email side effects.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":128,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"code":{"type":"string","pattern":"^[0-9]{6}$"}},"required":["email","code"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"confirmed":{"type":"boolean"}},"required":["confirmed"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/registration/resend":{"post":{"tags":["Accounts"],"description":"Public registration is closed in production before launch. Returns 403 REGISTRATION_DISABLED without account or email side effects.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":128,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"type":"boolean"}},"required":["sent"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/session":{"get":{"tags":["Accounts"],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"mfaConfigured":{"type":"boolean"},"platformAdmin":{"type":"boolean"}},"required":["mfaConfigured","platformAdmin"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/logout":{"post":{"tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"boolean"}},"required":["revoked"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/preferences":{"get":{"tags":["Accounts"],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["en","de"]}},"required":["locale"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","maxLength":35}},"required":["locale"],"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["en","de"]}},"required":["locale"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/workspaces":{"get":{"tags":["Accounts"],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/user-imports/validate":{"post":{"tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"people":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"maxLength":120},"ref":{"type":"string","minLength":1,"maxLength":120},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string"},"jobTitle":{"type":"string","maxLength":120},"unitId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerExternalId":{"nullable":true,"type":"string","minLength":1,"maxLength":120},"managerRef":{"nullable":true,"type":"string","minLength":1,"maxLength":120}},"required":["displayName","email"],"additionalProperties":false}}},"required":["people"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"users:invite","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"valid":{"type":"boolean"},"issues":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"index":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"field":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"}},"required":["index","field","code","message"],"additionalProperties":false}},"summary":{"type":"object","properties":{"people":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"alreadyLinked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invitations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["people","created","updated","alreadyLinked","invitations"],"additionalProperties":false}},"required":["valid","issues","summary"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/user-imports":{"post":{"tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"people":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"maxLength":120},"ref":{"type":"string","minLength":1,"maxLength":120},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string"},"jobTitle":{"type":"string","maxLength":120},"unitId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerExternalId":{"nullable":true,"type":"string","minLength":1,"maxLength":120},"managerRef":{"nullable":true,"type":"string","minLength":1,"maxLength":120}},"required":["displayName","email"],"additionalProperties":false}}},"required":["people"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"users:invite","responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","completed","needs_attention"]},"mode":{"type":"string","enum":["live","sandbox"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"total":{"type":"integer","minimum":1,"maximum":100},"processed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ref":{"nullable":true,"type":"string","minLength":1,"maxLength":120},"externalId":{"nullable":true,"type":"string","minLength":1,"maxLength":120},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"identityId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"invitationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","invited","accepted","already_linked","failed"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"nullable":true,"type":"string"},"nextAttemptAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["index","ref","externalId","personId","displayName","email","identityId","invitationId","status","attempts","error","nextAttemptAt"],"additionalProperties":false}}},"required":["id","organizationId","status","mode","createdAt","updatedAt","total","processed","failed","items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Import validation failed; existing valid/issues/summary fields remain available","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"valid":{"type":"boolean"},"issues":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"index":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"field":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"}},"required":["index","field","code","message"],"additionalProperties":false}},"summary":{"type":"object","properties":{"people":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"alreadyLinked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invitations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["people","created","updated","alreadyLinked","invitations"],"additionalProperties":false}},"required":["valid","issues","summary"],"additionalProperties":false}]}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/user-imports/{id}":{"get":{"tags":["Accounts"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"users:invite","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","completed","needs_attention"]},"mode":{"type":"string","enum":["live","sandbox"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"total":{"type":"integer","minimum":1,"maximum":100},"processed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ref":{"nullable":true,"type":"string","minLength":1,"maxLength":120},"externalId":{"nullable":true,"type":"string","minLength":1,"maxLength":120},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"identityId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"invitationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","invited","accepted","already_linked","failed"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"nullable":true,"type":"string"},"nextAttemptAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["index","ref","externalId","personId","displayName","email","identityId","invitationId","status","attempts","error","nextAttemptAt"],"additionalProperties":false}}},"required":["id","organizationId","status","mode","createdAt","updatedAt","total","processed","failed","items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/user-imports/{id}/retry":{"post":{"tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"users:invite","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","completed","needs_attention"]},"mode":{"type":"string","enum":["live","sandbox"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"total":{"type":"integer","minimum":1,"maximum":100},"processed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ref":{"nullable":true,"type":"string","minLength":1,"maxLength":120},"externalId":{"nullable":true,"type":"string","minLength":1,"maxLength":120},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"identityId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"invitationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","invited","accepted","already_linked","failed"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"nullable":true,"type":"string"},"nextAttemptAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["index","ref","externalId","personId","displayName","email","identityId","invitationId","status","attempts","error","nextAttemptAt"],"additionalProperties":false}}},"required":["id","organizationId","status","mode","createdAt","updatedAt","total","processed","failed","items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/invitations":{"get":{"tags":["Accounts"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"users:invite","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"locale":{"default":"en"},"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{},"role":{"default":"requester","type":"string","enum":["requester","admin"]},"approvalGroupIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","invited","accepted"]},"delivery":{"nullable":true,"type":"string","enum":["temporary_password","existing_account","simulated"]},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"acceptedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["locale","displayName","email","role","approvalGroupIds","id","personId","status","delivery","lastError","createdAt","expiresAt","acceptedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","maxLength":128,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"default":"requester","type":"string","enum":["requester","admin"]},"approvalGroupIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["displayName","email"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"users:invite","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"default":"en"},"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{},"role":{"default":"requester","type":"string","enum":["requester","admin"]},"approvalGroupIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","invited","accepted"]},"delivery":{"nullable":true,"type":"string","enum":["temporary_password","existing_account","simulated"]},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"acceptedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["locale","displayName","email","role","approvalGroupIds","id","personId","status","delivery","lastError","createdAt","expiresAt","acceptedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sandbox/invitations/{id}/accept":{"post":{"tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"users:invite","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"default":"en"},"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{},"role":{"default":"requester","type":"string","enum":["requester","admin"]},"approvalGroupIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","invited","accepted"]},"delivery":{"nullable":true,"type":"string","enum":["temporary_password","existing_account","simulated"]},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"acceptedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["locale","displayName","email","role","approvalGroupIds","id","personId","status","delivery","lastError","createdAt","expiresAt","acceptedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/invitations/{id}/retry":{"post":{"tags":["Accounts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"users:invite","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"default":"en"},"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{},"role":{"default":"requester","type":"string","enum":["requester","admin"]},"approvalGroupIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","invited","accepted"]},"delivery":{"nullable":true,"type":"string","enum":["temporary_password","existing_account","simulated"]},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"acceptedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["locale","displayName","email","role","approvalGroupIds","id","personId","status","delivery","lastError","createdAt","expiresAt","acceptedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tutorials":{"get":{"tags":["Tutorials"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"tutorialId":{"type":"string","enum":["welcome","live-setup","product-tour"]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"step":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["active","paused","completed","dismissed"]}},"required":["tutorialId","version","step","status"],"additionalProperties":false}},"liveEnabled":{"type":"boolean"},"canSetupLive":{"type":"boolean"},"canCreateExample":{"type":"boolean"},"missingFields":{"type":"array","items":{"type":"string"}},"example":{"nullable":true,"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"published":{"type":"boolean"},"runId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"nullable":true,"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"result":{"nullable":true,"type":"object","properties":{"referenceId":{"type":"string"},"amount":{"nullable":true,"type":"number"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"history":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","occurredAt"],"additionalProperties":false}}},"required":["referenceId","amount","createdAt","history"],"additionalProperties":false}},"required":["organizationId","flowId","published","runId","status"],"additionalProperties":false}},"required":["items","liveEnabled","canSetupLive","canCreateExample","missingFields","example"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tutorials/progress":{"post":{"tags":["Tutorials"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tutorialId":{"type":"string","enum":["welcome","live-setup","product-tour"]},"step":{"type":"integer","minimum":0,"maximum":20},"status":{"type":"string","enum":["active","paused","completed","dismissed"]}},"required":["tutorialId","step","status"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"tutorialId":{"type":"string","enum":["welcome","live-setup","product-tour"]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"step":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["active","paused","completed","dismissed"]}},"required":["tutorialId","version","step","status"],"additionalProperties":false}},"liveEnabled":{"type":"boolean"},"canSetupLive":{"type":"boolean"},"canCreateExample":{"type":"boolean"},"missingFields":{"type":"array","items":{"type":"string"}},"example":{"nullable":true,"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"published":{"type":"boolean"},"runId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"nullable":true,"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"result":{"nullable":true,"type":"object","properties":{"referenceId":{"type":"string"},"amount":{"nullable":true,"type":"number"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"history":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","occurredAt"],"additionalProperties":false}}},"required":["referenceId","amount","createdAt","history"],"additionalProperties":false}},"required":["organizationId","flowId","published","runId","status"],"additionalProperties":false}},"required":["items","liveEnabled","canSetupLive","canCreateExample","missingFields","example"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tutorials/product-tour/example":{"post":{"tags":["Tutorials"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["de","en"]},"attemptId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["locale"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"tutorialId":{"type":"string","enum":["welcome","live-setup","product-tour"]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"step":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["active","paused","completed","dismissed"]}},"required":["tutorialId","version","step","status"],"additionalProperties":false}},"liveEnabled":{"type":"boolean"},"canSetupLive":{"type":"boolean"},"canCreateExample":{"type":"boolean"},"missingFields":{"type":"array","items":{"type":"string"}},"example":{"nullable":true,"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"published":{"type":"boolean"},"runId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"nullable":true,"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"result":{"nullable":true,"type":"object","properties":{"referenceId":{"type":"string"},"amount":{"nullable":true,"type":"number"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"history":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","occurredAt"],"additionalProperties":false}}},"required":["referenceId","amount","createdAt","history"],"additionalProperties":false}},"required":["organizationId","flowId","published","runId","status"],"additionalProperties":false}},"required":["items","liveEnabled","canSetupLive","canCreateExample","missingFields","example"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/platform-admin":{"get":{"tags":["Platform administration"],"parameters":[{"schema":{"type":"string","maxLength":120},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"userCursor","required":false},{"schema":{"type":"string","maxLength":36},"in":"query","name":"organizationCursor","required":false}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"admin":{"type":"object","properties":{"subject":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["subject","email"],"additionalProperties":false},"counts":{"type":"object","properties":{"users":{"type":"integer","minimum":0,"maximum":9007199254740991},"organizations":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockedUsers":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockedOrganizations":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["users","organizations","blockedUsers","blockedOrganizations"],"additionalProperties":false},"users":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string"},"email":{"nullable":true,"type":"string"},"displayName":{"nullable":true,"type":"string"},"blocked":{"type":"boolean"},"admin":{"type":"boolean"},"mfaVerified":{"type":"boolean"},"organizations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["subject","email","displayName","blocked","admin","mfaVerified","organizations"],"additionalProperties":false}},"organizations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"blocked":{"type":"boolean"},"reason":{"type":"string"},"members":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","name","blocked","reason","members","createdAt"],"additionalProperties":false}},"audit":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"type":"string"},"target":{"type":"string"},"reason":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","action","target","reason","createdAt"],"additionalProperties":false}},"nextUserCursor":{"nullable":true,"type":"string"},"nextOrganizationCursor":{"nullable":true,"type":"string"}},"required":["admin","counts","users","organizations","audit","nextUserCursor","nextOrganizationCursor"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/platform-admin/commands":{"post":{"tags":["Platform administration"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["block-user","unblock-user","revoke-sessions","block-organization","unblock-organization"]},"target":{"type":"string","minLength":1,"maxLength":128},"reason":{"type":"string","minLength":5,"maxLength":300}},"required":["action","target","reason"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"replayed":{"type":"boolean"}},"required":["ok","replayed"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/service-accounts":{"get":{"tags":["Developer"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["flows:read","flows:write","runs:read","runs:start","organization:read","organization:write","users:invite"]}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"type":"boolean"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","scopes","id","active","revision","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Developer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["flows:read","flows:write","runs:read","runs:start","organization:read","organization:write","users:invite"]}}},"required":["name","scopes"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["flows:read","flows:write","runs:read","runs:start","organization:read","organization:write","users:invite"]}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"type":"boolean"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","scopes","id","active","revision","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/service-accounts/{id}":{"put":{"tags":["Developer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["flows:read","flows:write","runs:read","runs:start","organization:read","organization:write","users:invite"]}},"active":{"type":"boolean"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["name","scopes","active","revision"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["flows:read","flows:write","runs:read","runs:start","organization:read","organization:write","users:invite"]}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"type":"boolean"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","scopes","id","active","revision","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sandbox/developers":{"get":{"tags":["Developer"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"identityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"nullable":true,"type":"string"},"enabled":{"type":"boolean"}},"required":["identityId","displayName","email","enabled"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sandbox/developers/{id}":{"put":{"tags":["Developer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"nullable":true,"type":"string"},"enabled":{"type":"boolean"}},"required":["identityId","displayName","email","enabled"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/api-keys":{"get":{"tags":["Developer"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"serviceAccountId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["flows:read","flows:write","runs:read","runs:start","organization:read","organization:write","users:invite"]}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","serviceAccountId","prefix","scopes","createdAt","expiresAt","revokedAt","lastUsedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Developer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"string","enum":["flows:read","flows:write","runs:read","runs:start","organization:read","organization:write","users:invite"]}},"serviceAccountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresInDays":{"default":30,"nullable":true,"type":"integer","minimum":1,"maximum":365}},"required":["name","scopes"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"serviceAccountId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["flows:read","flows:write","runs:read","runs:start","organization:read","organization:write","users:invite"]}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","serviceAccountId","prefix","scopes","createdAt","expiresAt","revokedAt","lastUsedAt"],"additionalProperties":false},"secret":{"nullable":true,"type":"string","pattern":"^fg_(?:sk|test)_[a-f0-9]{64}$"},"replayed":{"type":"boolean"}},"required":["key","secret","replayed"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/api-keys/{id}/revoke":{"post":{"tags":["Developer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"serviceAccountId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["flows:read","flows:write","runs:read","runs:start","organization:read","organization:write","users:invite"]}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","serviceAccountId","prefix","scopes","createdAt","expiresAt","revokedAt","lastUsedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/privacy":{"get":{"tags":["Organization"],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"aiEnabled":{"type":"boolean"},"liveRetentionMonths":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"liveRetentionYears":{"type":"integer","minimum":1,"maximum":30},"contentRetentionDays":{"nullable":true,"type":"number"},"accountOnly":{"type":"boolean"}},"required":["aiEnabled","liveRetentionMonths","liveRetentionYears","contentRetentionDays","accountOnly"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"aiEnabled":{"type":"boolean"},"liveRetentionYears":{"type":"integer","minimum":1,"maximum":30}},"required":["aiEnabled"],"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"aiEnabled":{"type":"boolean"},"liveRetentionMonths":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"liveRetentionYears":{"type":"integer","minimum":1,"maximum":30},"contentRetentionDays":{"nullable":true,"type":"number"},"accountOnly":{"type":"boolean"}},"required":["aiEnabled","liveRetentionMonths","liveRetentionYears","contentRetentionDays","accountOnly"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/business-profile":{"get":{"tags":["Organization"],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"details":{"type":"object","properties":{"legalName":{"type":"string","maxLength":160},"addressLine1":{"type":"string","maxLength":160},"addressLine2":{"type":"string","maxLength":160},"postalCode":{"type":"string","maxLength":32},"city":{"type":"string","maxLength":100},"country":{"type":"string"},"contactName":{"type":"string","maxLength":120},"contactEmail":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]},"vatId":{"type":"string","maxLength":64},"registerNumber":{"type":"string","maxLength":100},"businessUseConfirmed":{"type":"boolean"}},"required":["legalName","addressLine1","addressLine2","postalCode","city","country","contactName","contactEmail","vatId","registerNumber","businessUseConfirmed"],"additionalProperties":false},"missingFields":{"type":"array","items":{"type":"string","enum":["legalName","addressLine1","postalCode","city","country","contactName","contactEmail","businessUseConfirmed"]}},"liveActivatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["organizationId","revision","details","missingFields","liveActivatedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"details":{"type":"object","properties":{"legalName":{"type":"string","maxLength":160},"addressLine1":{"type":"string","maxLength":160},"addressLine2":{"type":"string","maxLength":160},"postalCode":{"type":"string","maxLength":32},"city":{"type":"string","maxLength":100},"country":{"type":"string"},"contactName":{"type":"string","maxLength":120},"contactEmail":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]},"vatId":{"type":"string","maxLength":64},"registerNumber":{"type":"string","maxLength":100},"businessUseConfirmed":{"type":"boolean"}},"required":["legalName","addressLine1","addressLine2","postalCode","city","country","contactName","contactEmail","vatId","registerNumber","businessUseConfirmed"],"additionalProperties":false}},"required":["revision","details"],"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"details":{"type":"object","properties":{"legalName":{"type":"string","maxLength":160},"addressLine1":{"type":"string","maxLength":160},"addressLine2":{"type":"string","maxLength":160},"postalCode":{"type":"string","maxLength":32},"city":{"type":"string","maxLength":100},"country":{"type":"string"},"contactName":{"type":"string","maxLength":120},"contactEmail":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]},"vatId":{"type":"string","maxLength":64},"registerNumber":{"type":"string","maxLength":100},"businessUseConfirmed":{"type":"boolean"}},"required":["legalName","addressLine1","addressLine2","postalCode","city","country","contactName","contactEmail","vatId","registerNumber","businessUseConfirmed"],"additionalProperties":false},"missingFields":{"type":"array","items":{"type":"string","enum":["legalName","addressLine1","postalCode","city","country","contactName","contactEmail","businessUseConfirmed"]}},"liveActivatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["organizationId","revision","details","missingFields","liveActivatedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/activate-live":{"post":{"tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"confirm":{"type":"boolean","enum":[true]}},"required":["revision","confirm"],"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"details":{"type":"object","properties":{"legalName":{"type":"string","maxLength":160},"addressLine1":{"type":"string","maxLength":160},"addressLine2":{"type":"string","maxLength":160},"postalCode":{"type":"string","maxLength":32},"city":{"type":"string","maxLength":100},"country":{"type":"string"},"contactName":{"type":"string","maxLength":120},"contactEmail":{"anyOf":[{"type":"string","enum":[""]},{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]},"vatId":{"type":"string","maxLength":64},"registerNumber":{"type":"string","maxLength":100},"businessUseConfirmed":{"type":"boolean"}},"required":["legalName","addressLine1","addressLine2","postalCode","city","country","contactName","contactEmail","vatId","registerNumber","businessUseConfirmed"],"additionalProperties":false},"missingFields":{"type":"array","items":{"type":"string","enum":["legalName","addressLine1","postalCode","city","country","contactName","contactEmail","businessUseConfirmed"]}},"liveActivatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["organizationId","revision","details","missingFields","liveActivatedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/retention":{"get":{"tags":["Retention"],"parameters":[{"schema":{"default":"60","type":"string","enum":["60","all"]},"in":"query","name":"days","required":false},{"schema":{"default":"required","type":"string","enum":["required","all"]},"in":"query","name":"archive","required":false},{"schema":{"default":"no","type":"string","enum":["no","all"]},"in":"query","name":"downloaded","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"security":[{"flow2actAccessToken":[]}],"responses":{"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/retention/exports":{"post":{"tags":["Retention"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"default":"60","type":"string","enum":["60","all"]},"archive":{"default":"required","type":"string","enum":["required","all"]},"downloaded":{"default":"no","type":"string","enum":["no","all"]},"runIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/retention/exports/{id}/received":{"post":{"tags":["Retention"],"security":[{"flow2actAccessToken":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhook-endpoints":{"get":{"tags":["Webhooks"],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"url":{"type":"string","maxLength":2048,"format":"uri"},"events":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","enum":["run.started","gate.activated","gate.approved","gate.rejected","run.approved","run.rejected","run.expired","acknowledgment.requested","acknowledgment.completed","notification.created","notification.delivered","notification.failed","run.completed","action.queued","action.delivered","action.failed","action.retried","gate.reminded","gate.escalated","gate.timed_out"]}},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","url","events","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}}},"required":["configured","items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"url":{"type":"string","maxLength":2048,"format":"uri"},"events":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","enum":["run.started","gate.activated","gate.approved","gate.rejected","run.approved","run.rejected","run.expired","acknowledgment.requested","acknowledgment.completed","notification.created","notification.delivered","notification.failed","run.completed","action.queued","action.delivered","action.failed","action.retried","gate.reminded","gate.escalated","gate.timed_out"]}},"active":{"default":true,"type":"boolean"}},"required":["name","url","events"],"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"url":{"type":"string","maxLength":2048,"format":"uri"},"events":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","enum":["run.started","gate.activated","gate.approved","gate.rejected","run.approved","run.rejected","run.expired","acknowledgment.requested","acknowledgment.completed","notification.created","notification.delivered","notification.failed","run.completed","action.queued","action.delivered","action.failed","action.retried","gate.reminded","gate.escalated","gate.timed_out"]}},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","url","events","active","id","revision","createdAt","updatedAt"],"additionalProperties":false},"signingSecret":{"type":"string","pattern":"^fg_whsec_[a-f0-9]{64}$"}},"required":["endpoint","signingSecret"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhook-endpoints/{id}":{"put":{"tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"url":{"type":"string","maxLength":2048,"format":"uri"},"events":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","enum":["run.started","gate.activated","gate.approved","gate.rejected","run.approved","run.rejected","run.expired","acknowledgment.requested","acknowledgment.completed","notification.created","notification.delivered","notification.failed","run.completed","action.queued","action.delivered","action.failed","action.retried","gate.reminded","gate.escalated","gate.timed_out"]}},"active":{"default":true,"type":"boolean"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["name","url","events","revision"],"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"url":{"type":"string","maxLength":2048,"format":"uri"},"events":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","enum":["run.started","gate.activated","gate.approved","gate.rejected","run.approved","run.rejected","run.expired","acknowledgment.requested","acknowledgment.completed","notification.created","notification.delivered","notification.failed","run.completed","action.queued","action.delivered","action.failed","action.retried","gate.reminded","gate.escalated","gate.timed_out"]}},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","url","events","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhook-endpoints/{id}/rotate-secret":{"post":{"tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["revision"],"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"url":{"type":"string","maxLength":2048,"format":"uri"},"events":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","enum":["run.started","gate.activated","gate.approved","gate.rejected","run.approved","run.rejected","run.expired","acknowledgment.requested","acknowledgment.completed","notification.created","notification.delivered","notification.failed","run.completed","action.queued","action.delivered","action.failed","action.retried","gate.reminded","gate.escalated","gate.timed_out"]}},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","url","events","active","id","revision","createdAt","updatedAt"],"additionalProperties":false},"signingSecret":{"type":"string","pattern":"^fg_whsec_[a-f0-9]{64}$"}},"required":["endpoint","signingSecret"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhook-endpoints/{id}/deliveries":{"get":{"tags":["Webhooks"],"security":[{"flow2actAccessToken":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"endpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["run.started","gate.activated","gate.approved","gate.rejected","run.approved","run.rejected","run.expired","acknowledgment.requested","acknowledgment.completed","notification.created","notification.delivered","notification.failed","run.completed","action.queued","action.delivered","action.failed","action.retried","gate.reminded","gate.escalated","gate.timed_out"]},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","delivered","failed","cancelled"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastStatus":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"nextAttemptAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deliveredAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","endpointId","eventId","type","runId","status","attempts","lastStatus","lastError","createdAt","nextAttemptAt","deliveredAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhook-deliveries/{id}/retry":{"post":{"tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"endpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string","enum":["run.started","gate.activated","gate.approved","gate.rejected","run.approved","run.rejected","run.expired","acknowledgment.requested","acknowledgment.completed","notification.created","notification.delivered","notification.failed","run.completed","action.queued","action.delivered","action.failed","action.retried","gate.reminded","gate.escalated","gate.timed_out"]},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","delivered","failed","cancelled"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastStatus":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"nextAttemptAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"deliveredAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","endpointId","eventId","type","runId","status","attempts","lastStatus","lastError","createdAt","nextAttemptAt","deliveredAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhook-test":{"post":{"tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["create","read","clear","demo"]},"token":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["action"],"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"liveEnabled":{"type":"boolean"},"hosted":{"type":"boolean","enum":[true]},"connected":{"type":"boolean","enum":[true]},"token":{"type":"string","pattern":"^[a-f0-9]{64}$"},"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"items":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"type":{"type":"string","maxLength":120},"source":{"type":"string","enum":["webhook","demo"]},"httpStatus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"validJson":{"type":"boolean"},"payload":{},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","receivedAt","type","source","httpStatus","validJson","payload","headers","bytes"],"additionalProperties":false}},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"limits":{"type":"object","properties":{"maxEvents":{"type":"number","enum":[200]},"maxBytes":{"type":"number","enum":[2097152]},"maxRequestBytes":{"type":"number","enum":[65536]},"perMinute":{"type":"number","enum":[60]},"received":{"type":"integer","minimum":0,"maximum":9007199254740991},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["maxEvents","maxBytes","maxRequestBytes","perMinute","received","bytes"],"additionalProperties":false}},"required":["liveEnabled","hosted","connected","token","url","expiresAt","items","total","limits"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhook-test-receive":{"post":{"tags":["Webhooks"],"security":[{"TestReceiverToken":[]}],"responses":{"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/workspace":{"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"organizationId":{"type":"string","format":"uuid"},"mode":{"type":"string","enum":["live","sandbox"]}}}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["admin","requester","approver","team_lead","management","sandbox_developer"]}},"platformAdmin":{"type":"boolean"},"liveEnabled":{"type":"boolean"},"aiEnabled":{"type":"boolean"},"liveRetentionMonths":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"liveRetentionYears":{"type":"integer","minimum":1,"maximum":30},"environment":{"type":"object","properties":{"mode":{"type":"string","enum":["sandbox"]},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"processLimit":{"type":"integer","minimum":1,"maximum":9007199254740991},"openProcessLimit":{"type":"integer","minimum":1,"maximum":9007199254740991},"decisionTtlDays":{"type":"integer","minimum":1,"maximum":9007199254740991},"retentionDays":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["mode","organizationId","processLimit"],"additionalProperties":false}},"required":["organization","roles"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sandbox":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["admin","requester","approver","team_lead","management","sandbox_developer"]}},"platformAdmin":{"type":"boolean"},"liveEnabled":{"type":"boolean"},"aiEnabled":{"type":"boolean"},"liveRetentionMonths":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"liveRetentionYears":{"type":"integer","minimum":1,"maximum":30},"environment":{"type":"object","properties":{"mode":{"type":"string","enum":["sandbox"]},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"processLimit":{"type":"integer","minimum":1,"maximum":9007199254740991},"openProcessLimit":{"type":"integer","minimum":1,"maximum":9007199254740991},"decisionTtlDays":{"type":"integer","minimum":1,"maximum":9007199254740991},"retentionDays":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["mode","organizationId","processLimit"],"additionalProperties":false}},"required":["organization","roles"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["admin","requester","approver","team_lead","management","sandbox_developer"]}},"platformAdmin":{"type":"boolean"},"liveEnabled":{"type":"boolean"},"aiEnabled":{"type":"boolean"},"liveRetentionMonths":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"liveRetentionYears":{"type":"integer","minimum":1,"maximum":30},"environment":{"type":"object","properties":{"mode":{"type":"string","enum":["sandbox"]},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"processLimit":{"type":"integer","minimum":1,"maximum":9007199254740991},"openProcessLimit":{"type":"integer","minimum":1,"maximum":9007199254740991},"decisionTtlDays":{"type":"integer","minimum":1,"maximum":9007199254740991},"retentionDays":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["mode","organizationId","processLimit"],"additionalProperties":false}},"required":["organization","roles"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/access-reviewers":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"canManage":{"type":"boolean"},"canBootstrap":{"type":"boolean"},"canReview":{"type":"boolean"},"administrators":{"default":[],"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"owner":{"type":"boolean"}},"required":["personId","displayName","email","owner"],"additionalProperties":false}},"items":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"owner":{"type":"boolean"}},"required":["personId","displayName","email","owner"],"additionalProperties":false}},"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"default":"reviewer","type":"string","enum":["reviewer","administrator"]},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"canConfirm":{"type":"boolean"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","kind","personId","displayName","email","canConfirm","expiresAt"],"additionalProperties":false}}},"required":["canManage","canBootstrap","canReview","administrators","items","requests"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["request","remove","request-admin","remove-admin","approve","reject"]},"target":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["action","target"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"canManage":{"type":"boolean"},"canBootstrap":{"type":"boolean"},"canReview":{"type":"boolean"},"administrators":{"default":[],"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"owner":{"type":"boolean"}},"required":["personId","displayName","email","owner"],"additionalProperties":false}},"items":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"owner":{"type":"boolean"}},"required":["personId","displayName","email","owner"],"additionalProperties":false}},"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"default":"reviewer","type":"string","enum":["reviewer","administrator"]},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"canConfirm":{"type":"boolean"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","kind","personId","displayName","email","canConfirm","expiresAt"],"additionalProperties":false}}},"required":["canManage","canBootstrap","canReview","administrators","items","requests"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/approval-group-people":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"people":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"email":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"active":{"type":"boolean"},"hasLogin":{"type":"boolean"}},"required":["id","displayName","email","active","hasLogin"],"additionalProperties":false}}},"required":["people"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/approval-groups":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"memberIds":{"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"needsMemberReview":{"type":"boolean"},"accessScope":{"default":"general","type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"approved":{"default":false,"type":"boolean"},"canConfirmGroup":{"default":false,"type":"boolean"},"pendingMembers":{"default":[],"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestedBy":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"canConfirm":{"type":"boolean"}},"required":["personId","requestedBy","canConfirm"],"additionalProperties":false}}},"required":["id","name","revision","memberIds","needsMemberReview","accessScope","approved","canConfirmGroup","pendingMembers"],"additionalProperties":false}},"canApprove":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"canReview":{"default":false,"type":"boolean"}},"required":["items","canApprove","canReview"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"accessScope":{"default":"general","type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"memberIds":{"default":[],"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["name"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"memberIds":{"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"needsMemberReview":{"type":"boolean"},"accessScope":{"default":"general","type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"approved":{"default":false,"type":"boolean"},"canConfirmGroup":{"default":false,"type":"boolean"},"pendingMembers":{"default":[],"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestedBy":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"canConfirm":{"type":"boolean"}},"required":["personId","requestedBy","canConfirm"],"additionalProperties":false}}},"required":["id","name","revision","memberIds","needsMemberReview","accessScope","approved","canConfirmGroup","pendingMembers"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/approval-groups/{id}":{"put":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"accessScope":{"default":"general","type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"memberIds":{"default":[],"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["name","revision"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"memberIds":{"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"needsMemberReview":{"type":"boolean"},"accessScope":{"default":"general","type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"approved":{"default":false,"type":"boolean"},"canConfirmGroup":{"default":false,"type":"boolean"},"pendingMembers":{"default":[],"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestedBy":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"canConfirm":{"type":"boolean"}},"required":["personId","requestedBy","canConfirm"],"additionalProperties":false}}},"required":["id","name","revision","memberIds","needsMemberReview","accessScope","approved","canConfirmGroup","pendingMembers"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/approval-groups/{id}/reviews":{"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"decision":{"type":"string","enum":["approve","reject"]},"memberIds":{"default":[],"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"approveGroup":{"default":false,"type":"boolean"}},"required":["revision","decision"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"memberIds":{"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"needsMemberReview":{"type":"boolean"},"accessScope":{"default":"general","type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"approved":{"default":false,"type":"boolean"},"canConfirmGroup":{"default":false,"type":"boolean"},"pendingMembers":{"default":[],"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestedBy":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"canConfirm":{"type":"boolean"}},"required":["personId","requestedBy","canConfirm"],"additionalProperties":false}}},"required":["id","name","revision","memberIds","needsMemberReview","accessScope","approved","canConfirmGroup","pendingMembers"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/access":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"any","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["admin","requester","approver","team_lead","management","sandbox_developer"]}},"platformAdmin":{"type":"boolean"},"liveEnabled":{"type":"boolean"},"aiEnabled":{"type":"boolean"},"liveRetentionMonths":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"liveRetentionYears":{"type":"integer","minimum":1,"maximum":30},"environment":{"type":"object","properties":{"mode":{"type":"string","enum":["sandbox"]},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"processLimit":{"type":"integer","minimum":1,"maximum":9007199254740991},"openProcessLimit":{"type":"integer","minimum":1,"maximum":9007199254740991},"decisionTtlDays":{"type":"integer","minimum":1,"maximum":9007199254740991},"retentionDays":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["mode","organizationId","processLimit"],"additionalProperties":false}},"required":["organization","roles"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flows":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"draftRevision":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"publishedRevision":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"publishedVersion":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","createdAt","draftRevision","publishedRevision","publishedVersion","updatedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"accessScope":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]}},"required":["name","definition"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"accessScope":{"default":"general","type":"string"},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"designer":{"default":null,"nullable":true,"type":"object","properties":{"name":{"type":"string"},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","presentation"],"additionalProperties":false},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","flowId","version","definition","designer","publishedAt"],"additionalProperties":false}},"draft":{"default":null,"nullable":true,"type":"object","properties":{"document":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"accessScope":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","definition","presentation"],"additionalProperties":false},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"publishedRevision":{"nullable":true,"type":"integer","minimum":1,"maximum":9007199254740991},"publishedVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["document","revision","updatedAt","publishedRevision","publishedVersionId"],"additionalProperties":false}},"required":["id","name","accessScope","versions","draft"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/designer-flows":{"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"accessScope":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","definition","presentation"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"accessScope":{"default":"general","type":"string"},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"designer":{"default":null,"nullable":true,"type":"object","properties":{"name":{"type":"string"},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","presentation"],"additionalProperties":false},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","flowId","version","definition","designer","publishedAt"],"additionalProperties":false}},"draft":{"default":null,"nullable":true,"type":"object","properties":{"document":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"accessScope":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","definition","presentation"],"additionalProperties":false},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"publishedRevision":{"nullable":true,"type":"integer","minimum":1,"maximum":9007199254740991},"publishedVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["document","revision","updatedAt","publishedRevision","publishedVersionId"],"additionalProperties":false}},"required":["id","name","accessScope","versions","draft"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flows/{flowId}/draft":{"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"document":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"accessScope":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","definition","presentation"],"additionalProperties":false}},"required":["revision","document"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"flowId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"accessScope":{"default":"general","type":"string"},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"designer":{"default":null,"nullable":true,"type":"object","properties":{"name":{"type":"string"},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","presentation"],"additionalProperties":false},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","flowId","version","definition","designer","publishedAt"],"additionalProperties":false}},"draft":{"default":null,"nullable":true,"type":"object","properties":{"document":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"accessScope":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","definition","presentation"],"additionalProperties":false},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"publishedRevision":{"nullable":true,"type":"integer","minimum":1,"maximum":9007199254740991},"publishedVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["document","revision","updatedAt","publishedRevision","publishedVersionId"],"additionalProperties":false}},"required":["id","name","accessScope","versions","draft"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flows/{flowId}/publish":{"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["revision"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"flowId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"accessScope":{"default":"general","type":"string"},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"designer":{"default":null,"nullable":true,"type":"object","properties":{"name":{"type":"string"},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","presentation"],"additionalProperties":false},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","flowId","version","definition","designer","publishedAt"],"additionalProperties":false}},"draft":{"default":null,"nullable":true,"type":"object","properties":{"document":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"accessScope":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","definition","presentation"],"additionalProperties":false},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"publishedRevision":{"nullable":true,"type":"integer","minimum":1,"maximum":9007199254740991},"publishedVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["document","revision","updatedAt","publishedRevision","publishedVersionId"],"additionalProperties":false}},"required":["id","name","accessScope","versions","draft"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flows/{flowId}":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string"},"in":"path","name":"flowId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"accessScope":{"default":"general","type":"string"},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"designer":{"default":null,"nullable":true,"type":"object","properties":{"name":{"type":"string"},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","presentation"],"additionalProperties":false},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","flowId","version","definition","designer","publishedAt"],"additionalProperties":false}},"draft":{"default":null,"nullable":true,"type":"object","properties":{"document":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"accessScope":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","definition","presentation"],"additionalProperties":false},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"publishedRevision":{"nullable":true,"type":"integer","minimum":1,"maximum":9007199254740991},"publishedVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["document","revision","updatedAt","publishedRevision","publishedVersionId"],"additionalProperties":false}},"required":["id","name","accessScope","versions","draft"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flows/{flowId}/versions":{"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]}},"required":["definition"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"flowId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"designer":{"default":null,"nullable":true,"type":"object","properties":{"name":{"type":"string"},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","presentation"],"additionalProperties":false},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","flowId","version","definition","designer","publishedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-versions/{versionId}/publish":{"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"versionId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"designer":{"default":null,"nullable":true,"type":"object","properties":{"name":{"type":"string"},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","presentation"],"additionalProperties":false},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","flowId","version","definition","designer","publishedAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-runs":{"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string","minLength":1,"maxLength":128},"requesterPersonId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"documentIds":{"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["flowVersionId","referenceId","data"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:start","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requesterPersonId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"status":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"decisionExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"retentionYears":{"type":"integer","minimum":1,"maximum":30},"retentionMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archiveRequired":{"type":"boolean"},"contentExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"gates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"role":{"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"kind":{"default":"approval","type":"string","enum":["approval","acknowledgment"]},"status":{"type":"string","enum":["blocked","pending","approved","rejected","acknowledged","cancelled"]}},"required":["id","runId","position","key","role","kind","status"],"additionalProperties":false}}},"required":["id","flowVersionId","referenceId","data","status","createdAt","completedAt","gates"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requesterPersonId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"status":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"decisionExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"retentionYears":{"type":"integer","minimum":1,"maximum":30},"retentionMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archiveRequired":{"type":"boolean"},"contentExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowName":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pendingRole":{"nullable":true,"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"schemaVersion":{"default":1,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]}},"required":["id","flowVersionId","referenceId","data","status","createdAt","completedAt","flowId","flowName","version","pendingRole","schemaVersion"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/notifications":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nodeId":{"type":"string"},"title":{"type":"string"},"message":{"type":"string"},"referenceId":{"type":"string"},"flowName":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"readAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"emailStatus":{"type":"string","enum":["pending","sent","failed","skipped","test","cancelled"]}},"required":["id","runId","nodeId","title","message","referenceId","flowName","createdAt","readAt","emailStatus"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/approvals":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["approval","acknowledgment"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"task":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"role":{"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"kind":{"default":"approval","type":"string","enum":["approval","acknowledgment"]},"status":{"type":"string","enum":["blocked","pending","approved","rejected","acknowledged","cancelled"]}},"required":["id","runId","position","key","role","kind","status"],"additionalProperties":false},"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requesterPersonId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"status":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"decisionExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"retentionYears":{"type":"integer","minimum":1,"maximum":30},"retentionMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archiveRequired":{"type":"boolean"},"contentExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowName":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pendingRole":{"nullable":true,"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"schemaVersion":{"default":1,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]}]}},"required":["id","flowVersionId","referenceId","data","status","createdAt","completedAt","flowId","flowName","version","pendingRole","schemaVersion"],"additionalProperties":false}},"required":["task","run"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-runs/{runId}/overview":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string"},"in":"path","name":"runId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"decidableTaskIds":{"default":[],"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"run":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requesterPersonId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"status":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"decisionExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"retentionYears":{"type":"integer","minimum":1,"maximum":30},"retentionMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archiveRequired":{"type":"boolean"},"contentExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"gates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"role":{"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"kind":{"default":"approval","type":"string","enum":["approval","acknowledgment"]},"status":{"type":"string","enum":["blocked","pending","approved","rejected","acknowledged","cancelled"]}},"required":["id","runId","position","key","role","kind","status"],"additionalProperties":false}}},"required":["id","flowVersionId","referenceId","data","status","createdAt","completedAt","gates"],"additionalProperties":false},"flow":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","version"],"additionalProperties":false},"history":{"type":"array","items":{"type":"object","properties":{"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"actorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"details":{"type":"object","additionalProperties":{}}},"required":["sequence","type","actorId","runId","occurredAt","details"],"additionalProperties":false}},"definition":{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}},"required":["decidableTaskIds","run","flow","history"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-runs/{runId}":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string"},"in":"path","name":"runId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requesterPersonId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"status":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"decisionExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"retentionYears":{"type":"integer","minimum":1,"maximum":30},"retentionMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archiveRequired":{"type":"boolean"},"contentExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"gates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"role":{"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"kind":{"default":"approval","type":"string","enum":["approval","acknowledgment"]},"status":{"type":"string","enum":["blocked","pending","approved","rejected","acknowledged","cancelled"]}},"required":["id","runId","position","key","role","kind","status"],"additionalProperties":false}}},"required":["id","flowVersionId","referenceId","data","status","createdAt","completedAt","gates"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/gate-tasks":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"role":{"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"kind":{"default":"approval","type":"string","enum":["approval","acknowledgment"]},"status":{"type":"string","enum":["blocked","pending","approved","rejected","acknowledged","cancelled"]}},"required":["id","runId","position","key","role","kind","status"],"additionalProperties":false}}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/gate-tasks/{taskId}/decisions":{"post":{"tags":["Workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["approved","rejected","acknowledged"]},"comment":{"default":"","type":"string","maxLength":2000}},"required":["outcome"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"taskId","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requesterPersonId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"status":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"decisionExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"retentionYears":{"type":"integer","minimum":1,"maximum":30},"retentionMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archiveRequired":{"type":"boolean"},"contentExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"gates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"role":{"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"kind":{"default":"approval","type":"string","enum":["approval","acknowledgment"]},"status":{"type":"string","enum":["blocked","pending","approved","rejected","acknowledged","cancelled"]}},"required":["id","runId","position","key","role","kind","status"],"additionalProperties":false}}},"required":["id","flowVersionId","referenceId","data","status","createdAt","completedAt","gates"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-runs/{runId}/history":{"get":{"tags":["Workflows"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string"},"in":"path","name":"runId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"actorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"details":{"type":"object","additionalProperties":{}}},"required":["sequence","type","actorId","runId","occurredAt","details"],"additionalProperties":false}}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations":{"get":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"emailConfigured":{"type":"boolean"},"inboundDomain":{"nullable":true,"type":"string"},"verifiedSenderDomains":{"default":[],"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["email","teams","http","email_inbound"]},"active":{"type":"boolean"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"destination":{"type":"string"},"sourceAddress":{"default":"","type":"string"},"recipientDomains":{"type":"array","items":{"type":"string"}},"allowedSenders":{"type":"array","items":{"type":"string"}},"hasAuthorization":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","kind","active","revision","destination","sourceAddress","recipientDomains","allowedSenders","hasAuthorization","createdAt"],"additionalProperties":false}}},"required":["configured","emailConfigured","inboundDomain","verifiedSenderDomains","items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"kind":{"type":"string","enum":["email","teams","http","email_inbound"]},"active":{"default":true,"type":"boolean"},"config":{"type":"object","properties":{"sourceAddress":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"url":{"type":"string","maxLength":2048,"format":"uri"},"authorization":{"type":"string","maxLength":2048,"pattern":"^[^\\r\\n]*$"},"recipientDomains":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}},"allowedSenders":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":254}}},"additionalProperties":false}},"required":["name","kind","config"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["email","teams","http","email_inbound"]},"active":{"type":"boolean"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"destination":{"type":"string"},"sourceAddress":{"default":"","type":"string"},"recipientDomains":{"type":"array","items":{"type":"string"}},"allowedSenders":{"type":"array","items":{"type":"string"}},"hasAuthorization":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","kind","active","revision","destination","sourceAddress","recipientDomains","allowedSenders","hasAuthorization","createdAt"],"additionalProperties":false},"signingSecret":{"nullable":true,"type":"string"},"replayed":{"type":"boolean"}},"required":["integration","signingSecret","replayed"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/{id}":{"put":{"tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"kind":{"type":"string","enum":["email","teams","http","email_inbound"]},"active":{"default":true,"type":"boolean"},"config":{"type":"object","properties":{"sourceAddress":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"url":{"type":"string","maxLength":2048,"format":"uri"},"authorization":{"type":"string","maxLength":2048,"pattern":"^[^\\r\\n]*$"},"recipientDomains":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}},"allowedSenders":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":254}}},"additionalProperties":false},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["name","kind","config","revision"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["email","teams","http","email_inbound"]},"active":{"type":"boolean"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"destination":{"type":"string"},"sourceAddress":{"default":"","type":"string"},"recipientDomains":{"type":"array","items":{"type":"string"}},"allowedSenders":{"type":"array","items":{"type":"string"}},"hasAuthorization":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","kind","active","revision","destination","sourceAddress","recipientDomains","allowedSenders","hasAuthorization","createdAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/domains":{"get":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"},"txtName":{"type":"string"},"txtValue":{"type":"string"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","domain","txtName","txtValue","verifiedAt","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}},"required":["domain"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"},"txtName":{"type":"string"},"txtValue":{"type":"string"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","domain","txtName","txtValue","verifiedAt","createdAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/domains/{id}/verify":{"post":{"tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"},"txtName":{"type":"string"},"txtValue":{"type":"string"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","domain","txtName","txtValue","verifiedAt","createdAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-runs/{runId}/actions":{"get":{"tags":["Integrations"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false},{"schema":{"type":"string"},"in":"path","name":"runId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nodeId":{"type":"string"},"kind":{"type":"string","enum":["email","teams","http"]},"status":{"type":"string","enum":["pending","delivered","failed","continued","test","cancelled"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","runId","nodeId","kind","status","attempts","lastError","createdAt","completedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-runs/{runId}/actions/{id}/retry":{"post":{"tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"runId","required":true},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:start","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requesterPersonId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"status":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"decisionExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"retentionYears":{"type":"integer","minimum":1,"maximum":30},"retentionMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archiveRequired":{"type":"boolean"},"contentExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"gates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"role":{"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"kind":{"default":"approval","type":"string","enum":["approval","acknowledgment"]},"status":{"type":"string","enum":["blocked","pending","approved","rejected","acknowledged","cancelled"]}},"required":["id","runId","position","key","role","kind","status"],"additionalProperties":false}}},"required":["id","flowVersionId","referenceId","data","status","createdAt","completedAt","gates"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/inbound-email/{id}/context":{"post":{"tags":["Email ingress"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":200},"sender":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"recipient":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"subject":{"type":"string","maxLength":16384},"text":{"type":"string","maxLength":2097152},"textOrigin":{"default":"plain","type":"string","enum":["plain","html"]},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"authentication":{"type":"string","enum":["pass","fail"]},"spam":{"type":"string","enum":["pass","fail"]},"documentIds":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["messageId","sender","recipient","subject","text","authentication","spam"],"additionalProperties":false},"file":{"type":"object","properties":{"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"type":"integer","minimum":1,"maximum":26214400},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["fieldKey","fileName","contentType","size","sha256"],"additionalProperties":false},"documentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["message"],"additionalProperties":false}}}},"security":[{"EmailIngressSignature":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"documents":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"run":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requesterPersonId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"status":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"decisionExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"retentionYears":{"type":"integer","minimum":1,"maximum":30},"retentionMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archiveRequired":{"type":"boolean"},"contentExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"gates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"role":{"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"kind":{"default":"approval","type":"string","enum":["approval","acknowledgment"]},"status":{"type":"string","enum":["blocked","pending","approved","rejected","acknowledged","cancelled"]}},"required":["id","runId","position","key","role","kind","status"],"additionalProperties":false}}},"required":["id","flowVersionId","referenceId","data","status","createdAt","completedAt","gates"],"additionalProperties":false}},"required":["flowVersionId","documents","run"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/inbound-email/{id}/upload":{"post":{"tags":["Email ingress"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":200},"sender":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"recipient":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"subject":{"type":"string","maxLength":16384},"text":{"type":"string","maxLength":2097152},"textOrigin":{"default":"plain","type":"string","enum":["plain","html"]},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"authentication":{"type":"string","enum":["pass","fail"]},"spam":{"type":"string","enum":["pass","fail"]},"documentIds":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["messageId","sender","recipient","subject","text","authentication","spam"],"additionalProperties":false},"file":{"type":"object","properties":{"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"type":"integer","minimum":1,"maximum":26214400},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["fieldKey","fileName","contentType","size","sha256"],"additionalProperties":false},"documentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["message"],"additionalProperties":false}}}},"security":[{"EmailIngressSignature":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"document":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","enum":["s3","external"]},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha256":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["uploading","ready"]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","fieldKey","fileName","source","contentType","size","sha256","version","status","expiresAt"],"additionalProperties":false},"upload":{"nullable":true,"type":"object","properties":{"url":{"type":"string","format":"uri"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["url","headers","expiresAt"],"additionalProperties":false}},"required":["document","upload"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/inbound-email/{id}/confirm":{"post":{"tags":["Email ingress"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":200},"sender":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"recipient":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"subject":{"type":"string","maxLength":16384},"text":{"type":"string","maxLength":2097152},"textOrigin":{"default":"plain","type":"string","enum":["plain","html"]},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"authentication":{"type":"string","enum":["pass","fail"]},"spam":{"type":"string","enum":["pass","fail"]},"documentIds":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["messageId","sender","recipient","subject","text","authentication","spam"],"additionalProperties":false},"file":{"type":"object","properties":{"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"type":"integer","minimum":1,"maximum":26214400},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["fieldKey","fileName","contentType","size","sha256"],"additionalProperties":false},"documentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["message"],"additionalProperties":false}}}},"security":[{"EmailIngressSignature":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","enum":["s3","external"]},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha256":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["uploading","ready"]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","fieldKey","fileName","source","contentType","size","sha256","version","status","expiresAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/inbound-email/{id}/receive":{"post":{"tags":["Email ingress"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":200},"sender":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"recipient":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"subject":{"type":"string","maxLength":16384},"text":{"type":"string","maxLength":2097152},"textOrigin":{"default":"plain","type":"string","enum":["plain","html"]},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"authentication":{"type":"string","enum":["pass","fail"]},"spam":{"type":"string","enum":["pass","fail"]},"documentIds":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["messageId","sender","recipient","subject","text","authentication","spam"],"additionalProperties":false},"file":{"type":"object","properties":{"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"type":"integer","minimum":1,"maximum":26214400},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["fieldKey","fileName","contentType","size","sha256"],"additionalProperties":false},"documentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["message"],"additionalProperties":false}}}},"security":[{"EmailIngressSignature":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requesterPersonId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"status":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"decisionExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"retentionYears":{"type":"integer","minimum":1,"maximum":30},"retentionMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archiveRequired":{"type":"boolean"},"contentExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"gates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"role":{"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"kind":{"default":"approval","type":"string","enum":["approval","acknowledgment"]},"status":{"type":"string","enum":["blocked","pending","approved","rejected","acknowledged","cancelled"]}},"required":["id","runId","position","key","role","kind","status"],"additionalProperties":false}}},"required":["id","flowVersionId","referenceId","data","status","createdAt","completedAt","gates"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/documents/uploads":{"post":{"tags":["Documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"type":"integer","minimum":1,"maximum":26214400},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["flowVersionId","fieldKey","fileName","contentType","size","sha256"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:start","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"document":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","enum":["s3","external"]},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha256":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["uploading","ready"]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","fieldKey","fileName","source","contentType","size","sha256","version","status","expiresAt"],"additionalProperties":false},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["url","headers","expiresAt"],"additionalProperties":false}},"required":["document","upload"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/documents/links":{"post":{"tags":["Documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"url":{"type":"string","maxLength":2048,"format":"uri"},"version":{"type":"string","minLength":1,"maxLength":180},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}},"required":["flowVersionId","fieldKey","fileName","url","version","contentType"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:start","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","enum":["s3","external"]},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha256":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["uploading","ready"]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","fieldKey","fileName","source","contentType","size","sha256","version","status","expiresAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/documents/{documentId}/confirm":{"post":{"tags":["Documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true},{"schema":{"type":"string"},"in":"path","name":"documentId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:start","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","enum":["s3","external"]},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha256":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["uploading","ready"]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","fieldKey","fileName","source","contentType","size","sha256","version","status","expiresAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-runs/{runId}/email":{"get":{"tags":["Documents"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false},{"schema":{"type":"string"},"in":"path","name":"runId","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sender":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"recipient":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"subject":{"type":"string","maxLength":16384},"text":{"type":"string","maxLength":2097152},"textOrigin":{"type":"string","enum":["plain","html"]},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"attachments":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","enum":["s3","external"]},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha256":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["uploading","ready"]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","fieldKey","fileName","source","contentType","size","sha256","version","status","expiresAt"],"additionalProperties":false}}},"required":["sender","recipient","subject","text","textOrigin","receivedAt","expiresAt","attachments"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-runs/{runId}/documents":{"get":{"tags":["Documents"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false},{"schema":{"type":"string"},"in":"path","name":"runId","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","enum":["s3","external"]},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha256":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["uploading","ready"]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","fieldKey","fileName","source","contentType","size","sha256","version","status","expiresAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-runs/{runId}/documents/{documentId}/content":{"get":{"tags":["Documents"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false},{"schema":{"type":"string"},"in":"path","name":"runId","required":true},{"schema":{"type":"string"},"in":"path","name":"documentId","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Private file bytes, or an external document location after authorization","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"object","required":["kind","url"],"properties":{"kind":{"type":"string","enum":["external"]},"url":{"type":"string","format":"uri"}}}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/external-approvals/email":{"post":{"tags":["Documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","pattern":"^fg_ext_[a-f0-9]{64}$"}},"required":["token"],"additionalProperties":false}}}},"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sender":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"recipient":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"subject":{"type":"string","maxLength":16384},"text":{"type":"string","maxLength":2097152},"textOrigin":{"type":"string","enum":["plain","html"]},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"attachments":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","enum":["s3","external"]},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha256":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["uploading","ready"]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","fieldKey","fileName","source","contentType","size","sha256","version","status","expiresAt"],"additionalProperties":false}}},"required":["sender","recipient","subject","text","textOrigin","receivedAt","expiresAt","attachments"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/external-approvals/documents":{"post":{"tags":["Documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","pattern":"^fg_ext_[a-f0-9]{64}$"}},"required":["token"],"additionalProperties":false}}}},"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldKey":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"fileName":{"type":"string","minLength":1,"maxLength":180},"source":{"type":"string","enum":["s3","external"]},"contentType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]},"size":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sha256":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["uploading","ready"]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","fieldKey","fileName","source","contentType","size","sha256","version","status","expiresAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/external-approvals/documents/{documentId}/content":{"post":{"tags":["Documents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","pattern":"^fg_ext_[a-f0-9]{64}$"}},"required":["token"],"additionalProperties":false}}}},"security":[],"parameters":[{"schema":{"type":"string"},"in":"path","name":"documentId","required":true}],"responses":{"200":{"description":"Private file bytes, or an external document location after authorization","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"object","required":["kind","url"],"properties":{"kind":{"type":"string","enum":["external"]},"url":{"type":"string","format":"uri"}}}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/external-approvals/resolve":{"post":{"tags":["External approvals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","pattern":"^fg_ext_[a-f0-9]{64}$"}},"required":["token"],"additionalProperties":false}}}},"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","approved","rejected"]},"sandbox":{"type":"boolean"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"request":{"type":"object","properties":{"organization":{"type":"string"},"flow":{"type":"string"},"gate":{"type":"string"},"referenceId":{"type":"string"},"recipient":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["key","label","value"],"additionalProperties":false}}},"required":["organization","flow","gate","referenceId","recipient","fields"],"additionalProperties":false}},"required":["status","sandbox","expiresAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/external-approvals/decisions":{"post":{"tags":["External approvals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","pattern":"^fg_ext_[a-f0-9]{64}$"},"outcome":{"type":"string","enum":["approved","rejected"]},"comment":{"default":"","type":"string","maxLength":2000}},"required":["token","outcome"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","approved","rejected"]},"sandbox":{"type":"boolean"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"request":{"type":"object","properties":{"organization":{"type":"string"},"flow":{"type":"string"},"gate":{"type":"string"},"referenceId":{"type":"string"},"recipient":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["key","label","value"],"additionalProperties":false}}},"required":["organization","flow","gate","referenceId","recipient","fields"],"additionalProperties":false}},"required":["status","sandbox","expiresAt"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/sandbox/mailbox":{"get":{"tags":["External approvals"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"taskId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"recipient":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"usedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"delivery":{"type":"string","enum":["sandbox","email"]},"deliveryStatus":{"type":"string","enum":["test","pending","sent","failed","cancelled"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"sentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"flowName":{"type":"string"},"gateLabel":{"type":"string"},"referenceId":{"type":"string"},"link":{"nullable":true,"type":"string"}},"required":["id","taskId","recipient","expiresAt","usedAt","delivery","deliveryStatus","attempts","createdAt","sentAt","flowName","gateLabel","referenceId","link"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-runs/{runId}/external-approvals":{"get":{"tags":["External approvals"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string"},"in":"path","name":"runId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"runs:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"taskId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"recipient":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"usedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"delivery":{"type":"string","enum":["sandbox","email"]},"deliveryStatus":{"type":"string","enum":["test","pending","sent","failed","cancelled"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"sentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","taskId","recipient","expiresAt","usedAt","delivery","deliveryStatus","attempts","createdAt","sentAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/gate-tasks/{taskId}/external-approval/resend":{"post":{"tags":["External approvals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string"},"in":"path","name":"taskId","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"flows:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requesterPersonId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"referenceId":{"type":"string"},"data":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"status":{"type":"string","enum":["waiting","approved","rejected","completed","expired"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"decisionExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"retentionYears":{"type":"integer","minimum":1,"maximum":30},"retentionMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archiveRequired":{"type":"boolean"},"contentExpiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"gates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"key":{"type":"string"},"role":{"type":"string","pattern":"^(?:admin|requester|approver|team_lead|management|external|requester_manager|group:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$"},"kind":{"default":"approval","type":"string","enum":["approval","acknowledgment"]},"status":{"type":"string","enum":["blocked","pending","approved","rejected","acknowledged","cancelled"]}},"required":["id","runId","position","key","role","kind","status"],"additionalProperties":false}}},"required":["id","flowVersionId","referenceId","data","status","createdAt","completedAt","gates"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/directory":{"get":{"tags":["Organization"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"organization:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","name","revision"],"additionalProperties":false},"units":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"parentId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","externalId","parentId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}},"people":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"default":null,"nullable":true},"jobTitle":{"default":"","type":"string","maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"unitId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hrPersonId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"simulated":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["displayName","email","jobTitle","externalId","unitId","managerId","hrPersonId","identityId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}}},"required":["organization","units","people"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/members":{"get":{"tags":["Organization"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"organization:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"type":"string"}},"required":["id","subject"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization":{"put":{"tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["name","revision"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"organization:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","name","revision"],"additionalProperties":false},"units":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"parentId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","externalId","parentId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}},"people":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"default":null,"nullable":true},"jobTitle":{"default":"","type":"string","maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"unitId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hrPersonId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"simulated":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["displayName","email","jobTitle","externalId","unitId","managerId","hrPersonId","identityId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}}},"required":["organization","units","people"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/people":{"post":{"tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"nullable":true,"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"jobTitle":{"default":"","type":"string","maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"unitId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hrPersonId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"}},"required":["displayName"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"organization:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","name","revision"],"additionalProperties":false},"units":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"parentId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","externalId","parentId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}},"people":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"default":null,"nullable":true},"jobTitle":{"default":"","type":"string","maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"unitId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hrPersonId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"simulated":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["displayName","email","jobTitle","externalId","unitId","managerId","hrPersonId","identityId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}}},"required":["organization","units","people"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/people/{id}":{"put":{"tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"nullable":true,"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"jobTitle":{"default":"","type":"string","maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"unitId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hrPersonId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["displayName","email","jobTitle","externalId","unitId","managerId","hrPersonId","identityId","active","revision"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"organization:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","name","revision"],"additionalProperties":false},"units":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"parentId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","externalId","parentId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}},"people":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"default":null,"nullable":true},"jobTitle":{"default":"","type":"string","maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"unitId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hrPersonId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"simulated":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["displayName","email","jobTitle","externalId","unitId","managerId","hrPersonId","identityId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}}},"required":["organization","units","people"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/units":{"post":{"tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"parentId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"}},"required":["name"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"organization:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","name","revision"],"additionalProperties":false},"units":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"parentId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","externalId","parentId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}},"people":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"default":null,"nullable":true},"jobTitle":{"default":"","type":"string","maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"unitId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hrPersonId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"simulated":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["displayName","email","jobTitle","externalId","unitId","managerId","hrPersonId","identityId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}}},"required":["organization","units","people"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/units/{id}":{"put":{"tags":["Organization"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"parentId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["name","externalId","parentId","active","revision"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":true}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"organization:write","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["id","name","revision"],"additionalProperties":false},"units":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"parentId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","externalId","parentId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}},"people":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"default":null,"nullable":true},"jobTitle":{"default":"","type":"string","maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"unitId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hrPersonId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"simulated":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["displayName","email","jobTitle","externalId","unitId","managerId","hrPersonId","identityId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}}},"required":["organization","units","people"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/organization/people/{id}/responsibilities":{"get":{"tags":["Organization"],"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true},{"schema":{"type":"string","minLength":8,"maxLength":128},"in":"header","name":"idempotency-key","required":false}],"security":[{"flow2actAccessToken":[]},{"IntegrationKey":[]}],"x-api-key-scope":"organization:read","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"manager":{"nullable":true,"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"default":null,"nullable":true},"jobTitle":{"default":"","type":"string","maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"unitId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hrPersonId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"simulated":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["displayName","email","jobTitle","externalId","unitId","managerId","hrPersonId","identityId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false},"hr":{"nullable":true,"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":120},"email":{"default":null,"nullable":true},"jobTitle":{"default":"","type":"string","maxLength":120},"externalId":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":120},"unitId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"managerId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hrPersonId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"identityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"active":{"default":true,"type":"boolean"},"simulated":{"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["displayName","email","jobTitle","externalId","unitId","managerId","hrPersonId","identityId","active","id","revision","createdAt","updatedAt"],"additionalProperties":false}},"required":["personId","manager","hr"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ai/flow-suggestions":{"post":{"tags":["AI"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":12,"maxLength":3000},"locale":{"default":"en","type":"string","enum":["en","de"]}},"required":["prompt"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"document":{"nullable":true,"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"accessScope":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[a-z0-9][a-z0-9_-]*$"},"definition":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1]},"archiveRequired":{"type":"boolean"},"currency":{"type":"string","enum":["EUR"]},"bands":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"upToMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":1000000000000},"gates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"role":{"type":"string","enum":["team_lead","management"]}},"required":["key","role"],"additionalProperties":false}}},"required":["upToMinor","gates"],"additionalProperties":false}}},"required":["schemaVersion","currency","bands"],"additionalProperties":false},{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false}]},"presentation":{"type":"object","properties":{"names":{"type":"object","properties":{"api":{"type":"string","minLength":1,"maxLength":60},"amount":{"type":"string","minLength":1,"maxLength":60},"end":{"type":"string","minLength":1,"maxLength":60}},"required":["api","amount","end"],"additionalProperties":false},"description":{"type":"string","maxLength":200},"connections":{"type":"object","additionalProperties":{"type":"object","properties":{"source":{"type":"string","enum":["left","right","top","bottom"]},"target":{"type":"string","enum":["left","right","top","bottom"]},"sourceOffset":{"type":"number","minimum":0,"maximum":100},"targetOffset":{"type":"number","minimum":0,"maximum":100}},"required":["source","target"],"additionalProperties":false}},"positions":{"type":"object","additionalProperties":{"type":"object","properties":{"x":{"type":"number","minimum":-100000,"maximum":100000},"y":{"type":"number","minimum":-100000,"maximum":100000}},"required":["x","y"],"additionalProperties":false}}},"required":["names","description","positions"],"additionalProperties":false}},"required":["name","definition","presentation"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"string"}},"assumptions":{"type":"array","items":{"type":"string"}},"unresolvedGroups":{"type":"array","items":{"type":"object","properties":{"nodeId":{"type":"string"},"name":{"type":"string"}},"required":["nodeId","name"],"additionalProperties":false}},"unresolvedIntegrations":{"default":[],"type":"array","items":{"type":"object","properties":{"nodeId":{"type":"string"},"name":{"type":"string"}},"required":["nodeId","name"],"additionalProperties":false}},"model":{"type":"string"}},"required":["document","questions","assumptions","unresolvedGroups","unresolvedIntegrations","model"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ai/flow-edits":{"post":{"tags":["AI"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":3,"maxLength":3000},"locale":{"default":"en","type":"string","enum":["en","de"]},"name":{"type":"string","minLength":1,"maxLength":120},"definition":{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{"type":"string","maxLength":35},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false},"selection":{"default":null,"nullable":true,"type":"object","properties":{"nodeId":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"output":{"nullable":true,"type":"string","enum":["next","yes","no","rejectedNext"]}},"required":["nodeId","output"],"additionalProperties":false}},"required":["prompt","name","definition"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"nullable":true,"type":"object","properties":{"schemaVersion":{"type":"number","enum":[2]},"archiveRequired":{"type":"boolean"},"fields":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","email","number","boolean","date","select"]},"required":{"type":"boolean"},"options":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"min":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000},"max":{"default":null,"nullable":true,"type":"number","minimum":-1000000000000,"maximum":1000000000000}},"required":["key","label","type","required","options","min","max"],"additionalProperties":false}},"documents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"type":"boolean"},"requiredWhen":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"values":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}}},"required":["field","values"],"additionalProperties":false},"maxFiles":{"type":"integer","minimum":1,"maximum":10},"maxSizeMB":{"type":"integer","minimum":1,"maximum":25},"types":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["application/pdf","image/png","image/jpeg","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]}}},"required":["key","label","required","maxFiles","maxSizeMB","types"],"additionalProperties":false}},"nodes":{"maxItems":40,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["start"]},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"trigger":{"type":"object","properties":{"kind":{"type":"string","enum":["api","form","email"]},"integrationId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","integrationId"],"additionalProperties":false}},"required":["id","label","type","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["condition"]},"match":{"type":"string","enum":["all","any"]},"rules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"operator":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains"]},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number","minimum":-1000000000000,"maximum":1000000000000},{"type":"boolean"}]}},"required":["field","operator","value"],"additionalProperties":false}},"yes":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"no":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","match","rules","yes","no"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["approval"]},"assignment":{"type":"string","enum":["requester_manager"]},"timing":{"type":"object","properties":{"remindAfterHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"deadlineHours":{"nullable":true,"type":"integer","minimum":1,"maximum":8760},"escalationGroupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["remindAfterHours","deadlineHours","escalationGroupId"],"additionalProperties":false},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"rejectedNext":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"externalApprover":{"oneOf":[{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["email"]},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["source","email"],"additionalProperties":false},{"type":"object","properties":{"locale":{},"localeField":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"source":{"type":"string","enum":["field"]},"field":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"allowedDomains":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}}},"required":["source","field","allowedDomains"],"additionalProperties":false}]},"sharedFields":{"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedDocuments":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"sharedEmail":{"type":"boolean"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["acknowledgment"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["notification"]},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"default":"","type":"string","maxLength":1000},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","groupId","message","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["action"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["email","teams","http"]},"integrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"","type":"string","maxLength":200},"message":{"default":"","type":"string","maxLength":2000},"recipient":{"default":{"source":"requester","value":""},"type":"object","properties":{"source":{"type":"string","enum":["requester","group","field","email"]},"value":{"default":"","type":"string","maxLength":254}},"required":["source","value"],"additionalProperties":false},"sharedFields":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"onFailure":{"default":"stop","type":"string","enum":["stop","continue"]}},"required":["kind","integrationId","subject","message","recipient","sharedFields","onFailure"],"additionalProperties":false},"next":{"nullable":true,"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"}},"required":["id","label","type","action","next"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-zA-Z0-9_-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["end"]},"outcome":{"type":"string","enum":["approved","rejected","completed"]}},"required":["id","label","type","outcome"],"additionalProperties":false}]}}},"required":["schemaVersion","fields","nodes"],"additionalProperties":false},"summary":{"type":"string","maxLength":500},"questions":{"maxItems":3,"type":"array","items":{"type":"string"}},"assumptions":{"maxItems":5,"type":"array","items":{"type":"string"}},"unresolvedGroups":{"type":"array","items":{"type":"object","properties":{"nodeId":{"type":"string"},"name":{"type":"string"}},"required":["nodeId","name"],"additionalProperties":false}},"unresolvedIntegrations":{"default":[],"type":"array","items":{"type":"object","properties":{"nodeId":{"type":"string"},"name":{"type":"string"}},"required":["nodeId","name"],"additionalProperties":false}},"model":{"type":"string"},"changes":{"type":"object","properties":{"added":{"type":"integer","minimum":0,"maximum":9007199254740991},"updated":{"type":"integer","minimum":0,"maximum":9007199254740991},"removed":{"type":"integer","minimum":0,"maximum":9007199254740991},"fields":{"type":"integer","minimum":0,"maximum":9007199254740991},"documents":{"type":"integer","minimum":0,"maximum":9007199254740991},"connections":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["added","updated","removed","fields","documents","connections"],"additionalProperties":false}},"required":["definition","summary","questions","assumptions","unresolvedGroups","unresolvedIntegrations","model","changes"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/ai/docs-questions":{"post":{"tags":["AI"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":5,"maxLength":2000},"topic":{"type":"string","enum":["integrations","create-integration","update-integration","domains","add-domain","verify-domain","run-actions","retry-action","email-ingress","edit-flow","step-types","notifications","documents","document-upload","document-confirm","document-link","document-list","document-content","received-email","external-received-email","external-document-list","external-document-content","business-profile","save-business-profile","activate-live","webhooks","create-webhook","update-webhook","rotate-webhook-secret","webhook-deliveries","retry-webhook-delivery","external-resolve","external-decide","external-status","external-resend","sandbox-mailbox","service-accounts","create-service-account","update-service-account","sandbox-developers","set-sandbox-developer","postman","obtain-token","refresh-token","auth-challenge","register-account","confirm-account","workspace","workspaces","invite-user","invitations","retry-invitation","accept-sandbox-invitation","validate-user-import","create-user-import","get-user-import","retry-user-import","overview","sandbox","create-sandbox","authentication","idempotency","errors","list-flows","get-flow","create-flow","save-draft","publish-flow","start-run","list-runs","get-run","run-overview","history","approvals","decide","groups","link-group","update-group","directory","create-person","update-person","create-unit","update-unit","rename-workspace","responsibilities","api-keys","create-key","revoke-key","generate-flow","search-flows","ask-docs","limits"]},"locale":{"default":"en","type":"string","enum":["en","de"]}},"required":["question","topic"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"answer":{"type":"string","minLength":1,"maxLength":8000},"sources":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["integrations","create-integration","update-integration","domains","add-domain","verify-domain","run-actions","retry-action","email-ingress","edit-flow","step-types","notifications","documents","document-upload","document-confirm","document-link","document-list","document-content","received-email","external-received-email","external-document-list","external-document-content","business-profile","save-business-profile","activate-live","webhooks","create-webhook","update-webhook","rotate-webhook-secret","webhook-deliveries","retry-webhook-delivery","external-resolve","external-decide","external-status","external-resend","sandbox-mailbox","service-accounts","create-service-account","update-service-account","sandbox-developers","set-sandbox-developer","postman","obtain-token","refresh-token","auth-challenge","register-account","confirm-account","workspace","workspaces","invite-user","invitations","retry-invitation","accept-sandbox-invitation","validate-user-import","create-user-import","get-user-import","retry-user-import","overview","sandbox","create-sandbox","authentication","idempotency","errors","list-flows","get-flow","create-flow","save-draft","publish-flow","start-run","list-runs","get-run","run-overview","history","approvals","decide","groups","link-group","update-group","directory","create-person","update-person","create-unit","update-unit","rename-workspace","responsibilities","api-keys","create-key","revoke-key","generate-flow","search-flows","ask-docs","limits"]}}},"required":["answer","sources"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flows/search":{"post":{"tags":["AI"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":2,"maxLength":200},"smart":{"default":false,"type":"boolean"}},"required":["query"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"header","name":"x-organization-id","required":true}],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"draftRevision":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"publishedRevision":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"publishedVersion":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"description":{"type":"string"},"matches":{"type":"array","items":{"type":"string"}}},"required":["id","name","createdAt","draftRevision","publishedRevision","publishedVersion","updatedAt","description","matches"],"additionalProperties":false}},"mode":{"type":"string","enum":["smart","keyword"]},"degraded":{"type":"boolean"},"terms":{"type":"array","items":{"type":"string"}}},"required":["items","mode","degraded","terms"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/webhook":{"post":{"tags":["Billing"],"description":"Stripe sandbox webhook; verified against the original raw request bytes.","security":[{"StripeSignature":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"received":{"type":"boolean","enum":[true]}},"required":["received"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing":{"get":{"tags":["Billing"],"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["free","pro"]},"status":{"type":"string"},"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":9007199254740991},"remaining":{"type":"integer","minimum":0,"maximum":9007199254740991},"periodStart":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"paidUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"cancelAtPeriodEnd":{"type":"boolean"},"canManage":{"type":"boolean"},"checkoutReady":{"type":"boolean"},"portalReady":{"type":"boolean"},"testMode":{"type":"boolean","enum":[true]},"openProcesses":{"type":"integer","minimum":0,"maximum":9007199254740991},"openProcessLimit":{"type":"integer","minimum":1,"maximum":9007199254740991},"offers":{"type":"array","items":{"type":"object","properties":{"interval":{"type":"string","enum":["month","year"]},"amount":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"limit":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["interval","amount","currency","limit"],"additionalProperties":false}}},"required":["plan","status","used","limit","remaining","periodStart","periodEnd","paidUntil","cancelAtPeriodEnd","canManage","checkoutReady","portalReady","testMode","offers"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/checkout":{"post":{"tags":["Billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"interval":{"type":"string","enum":["month","year"]},"locale":{"default":"en","type":"string","enum":["en","de"]}},"required":["interval","locale"],"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/portal":{"post":{"tags":["Billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"default":"en","type":"string","enum":["en","de"]}},"required":["locale"],"additionalProperties":false}}}},"security":[{"flow2actAccessToken":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false}}}},"400":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"RFC 9457 problem details; error, message and requestId remain compatible","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"tags":[{"name":"External approvals","description":"Task-scoped guest approval links and Sandbox test mailbox"},{"name":"Developer","description":"Restricted integration keys"},{"name":"Organization","description":"Tenant-scoped people, units and reporting relationships"},{"name":"AI","description":"Validated workflow suggestions and query expansion through DeutschlandGPT"},{"name":"Billing","description":"Workspace subscription and process quota"},{"name":"Workflows","description":"Organization-scoped approval workflows"},{"name":"Operations","description":"Service health and readiness"},{"name":"API","description":"API metadata"}],"servers":[{"url":"https://api.flow2act.com"}]}