Référence de l’API REST
Retrouvez les méthodes HTTP, paramètres, droits, réponses et erreurs de l’API Hecaton v1.
https://api.hecaton.io/v1 · OpenAPI 3.1.1 · 1.0.0
Document OpenAPI. Le document OpenAPI donne les schémas complets des requêtes et réponses et les descriptions de référence en anglais.
Identité et projets
GET/v1/me
Get the current member, organization and API token scope
getMe · Authentification — Jeton porteur
Réponses
200—application/json·MemberIdentity. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/projects
List projects visible to the API token
listProjects · Authentification — Jeton porteur
Droit — projects:read
Paramètres
limit(query, facultatif) —integer· 1–100 ·20cursor(query, facultatif) —string. Cursor returned by the previous page. Omit it to start at the first page.
Réponses
200—application/json·ProjectPage. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
Workspaces
GET/v1/workspaces
List workspaces visible to the API token
listWorkspaces · Authentification — Jeton porteur
Droit — workspaces:read
Paramètres
limit(query, facultatif) —integer· 1–100 ·20cursor(query, facultatif) —string. Cursor returned by the previous page. Omit it to start at the first page.projectId(query, facultatif) —stringstate(query, facultatif) —"creating","ready","running","waiting_answer","idle","asleep","archived","failed"origin(query, facultatif) —"member","api_token"
Réponses
200—application/json·WorkspacePage. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/workspaces
Reserve a workspace and queue its first turn
createWorkspace · Authentification — Jeton porteur
Droit — workspaces:write
Paramètres
Idempotency-Key(header, obligatoire) —string. Send one key per creation. Hecaton retains the key for 24 hours. Reusing it with a different request returns 409 idempotency_key_reused.
Corps de la requête (obligatoire)
application/json — CreateWorkspaceRequest
Réponses
202—application/json·AcceptedWorkspace. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—project_not_found. En-têtes —X-Request-Id409—idempotency_key_reused,capacity_member_limit_exceeded,storage_full. En-têtes —X-Request-Id413—payload_too_large. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/workspaces/{id}
Read a workspace and its current state
getWorkspace · Authentification — Jeton porteur
Droit — workspaces:read
Paramètres
id(path, obligatoire) —string
Réponses
200—application/json·Workspace. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/workspaces/{id}/messages
Queue a message and return its turn ID, waking a sleeping workspace
sendWorkspaceMessage · Authentification — Jeton porteur
Droit — workspaces:write
Paramètres
id(path, obligatoire) —stringIdempotency-Key(header, obligatoire) —string. Send one key per creation. Hecaton retains the key for 24 hours. Reusing it with a different request returns 409 idempotency_key_reused.
Corps de la requête (obligatoire)
application/json — SendWorkspaceMessageRequest
Réponses
202—application/json·AcceptedWorkspaceMessage. En-têtes —X-Request-Id400—invalid_request,message_contains_secret. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found. En-têtes —X-Request-Id409—workspace_archived,idempotency_key_reused. En-têtes —X-Request-Id413—payload_too_large. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/workspaces/{id}/messages
List messages across the workspace conversations, newest first
listWorkspaceMessages · Authentification — Jeton porteur
Droit — workspaces:read
Paramètres
id(path, obligatoire) —stringlimit(query, facultatif) —integer· 1–100 ·20cursor(query, facultatif) —string. Cursor returned by the previous page. Omit it to start at the first page.
Réponses
200—application/json·WorkspaceMessagePage. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/workspaces/{id}/turns/{turnId}
Read one turn and its latest saved reply
getWorkspaceTurn · Authentification — Jeton porteur
Droit — workspaces:read
Paramètres
id(path, obligatoire) —stringturnId(path, obligatoire) —string
Réponses
200—application/json·WorkspaceTurn. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found,turn_not_found. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/workspaces/{id}/results
Read published results and the workspace result contract
getWorkspaceResults · Authentification — Jeton porteur
Droit — workspaces:read
Paramètres
id(path, obligatoire) —string
Réponses
200—application/json·WorkspaceResults. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/workspaces/{id}/events
Follow committed workspace events and resume with Last-Event-ID
streamWorkspaceEvents · Authentification — Jeton porteur
Droit — workspaces:read
Paramètres
id(path, obligatoire) —stringLast-Event-ID(header, facultatif) —string. Resume after this event. Omit to receive retained events. Reconnect after the stream closes, including its 55-minute rotation.
Réponses
200—text/event-stream·string. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found. En-têtes —X-Request-Id410—event_cursor_expired. En-têtes —X-Request-Id429—rate_limit_exceeded,stream_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/workspaces/{id}/questions
List the pending agent questions in a workspace
listWorkspaceQuestions · Authentification — Jeton porteur
Droit — questions:read
Paramètres
id(path, obligatoire) —stringlimit(query, facultatif) —integer· 1–100 ·20cursor(query, facultatif) —string. Cursor returned by the previous page. Omit it to start at the first page.
Réponses
200—application/json·WorkspaceQuestionPage. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/workspaces/{id}/questions/{questionId}/answer
Answer a pending agent question
answerWorkspaceQuestion · Authentification — Jeton porteur
Droit — questions:write
Paramètres
id(path, obligatoire) —stringquestionId(path, obligatoire) —stringIdempotency-Key(header, obligatoire) —string. Send one key per creation. Hecaton retains the key for 24 hours. Reusing it with a different request returns 409 idempotency_key_reused.
Corps de la requête (obligatoire)
application/json — AnswerWorkspaceQuestionRequest
Réponses
200—application/json·AnsweredWorkspaceQuestion. En-têtes —X-Request-Id400—invalid_request,message_contains_secret. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found,question_not_found. En-têtes —X-Request-Id409—question_already_answered,idempotency_key_reused. En-têtes —X-Request-Id413—payload_too_large. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/workspaces/{id}/sleep
Put a workspace to sleep and return its current state
sleepWorkspace · Authentification — Jeton porteur
Droit — sleep:write
Paramètres
id(path, obligatoire) —string
Réponses
200—application/json·Workspace. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found. En-têtes —X-Request-Id409—workspace_lifecycle_conflict,workspace_pause_busy,workspace_pause_setup_busy,workspace_pause_command_busy,workspace_pause_unconfirmed. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/workspaces/{id}/wake
Request a wake, queued if capacity is unavailable, and return the current state
wakeWorkspace · Authentification — Jeton porteur
Droit — sleep:write
Paramètres
id(path, obligatoire) —string
Réponses
202—application/json·Workspace. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found. En-têtes —X-Request-Id409—workspace_lifecycle_conflict. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/workspaces/{id}/archive
Request an archive and return the current state. Requires archive:all for another origin
archiveWorkspace · Authentification — Jeton porteur
Droit — archive:own
Paramètres
id(path, obligatoire) —string
Réponses
202—application/json·Workspace. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—workspace_not_found. En-têtes —X-Request-Id409—workspace_lifecycle_conflict. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
Tâches planifiées
GET/v1/scheduled-jobs
List scheduled jobs visible to the API token
listScheduledJobs · Authentification — Jeton porteur
Droit — jobs:read
Paramètres
limit(query, facultatif) —integer· 1–100 ·20cursor(query, facultatif) —string. Cursor returned by the previous page. Omit it to start at the first page.
Réponses
200—application/json·ScheduledJobPage. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/scheduled-jobs
Create a scheduled job
createScheduledJob · Authentification — Jeton porteur
Droit — jobs:write
Paramètres
Idempotency-Key(header, obligatoire) —string. Send one key per creation. Hecaton retains the key for 24 hours. Reusing it with a different request returns 409 idempotency_key_reused.
Corps de la requête (obligatoire)
application/json — CreateScheduledJobRequest
Réponses
201—application/json·ScheduledJob. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—project_not_found. En-têtes —X-Request-Id409—idempotency_key_reused. En-têtes —X-Request-Id413—payload_too_large. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/scheduled-jobs/{id}
Read a scheduled job and its latest visible run
getScheduledJob · Authentification — Jeton porteur
Droit — jobs:read
Paramètres
id(path, obligatoire) —string
Réponses
200—application/json·ScheduledJobDetail. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—scheduled_job_not_found. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
PATCH/v1/scheduled-jobs/{id}
Update the specified fields of a scheduled job
updateScheduledJob · Authentification — Jeton porteur
Droit — jobs:write
Paramètres
id(path, obligatoire) —string
Corps de la requête (obligatoire)
application/json — UpdateScheduledJobRequest
Réponses
200—application/json·ScheduledJob. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—project_not_found,scheduled_job_not_found. En-têtes —X-Request-Id409—scheduled_job_changed. En-têtes —X-Request-Id413—payload_too_large. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
DELETE/v1/scheduled-jobs/{id}
Delete a scheduled job
deleteScheduledJob · Authentification — Jeton porteur
Droit — jobs:write
Paramètres
id(path, obligatoire) —string
Réponses
200—application/json·ScheduledJobDeletion. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—scheduled_job_not_found. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/scheduled-jobs/{id}/runs
List executions of a scheduled job
listScheduledJobRuns · Authentification — Jeton porteur
Droit — jobs:read
Paramètres
id(path, obligatoire) —stringlimit(query, facultatif) —integer· 1–100 ·20cursor(query, facultatif) —string. Cursor returned by the previous page. Omit it to start at the first page.
Réponses
200—application/json·ScheduledRunPage. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—scheduled_job_not_found. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/scheduled-jobs/{id}/pause
Pause a scheduled job
pauseScheduledJob · Authentification — Jeton porteur
Droit — jobs:write
Paramètres
id(path, obligatoire) —string
Réponses
200—application/json·ScheduledJob. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—scheduled_job_not_found. En-têtes —X-Request-Id409—scheduled_job_changed. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/scheduled-jobs/{id}/resume
Resume a scheduled job
resumeScheduledJob · Authentification — Jeton porteur
Droit — jobs:write
Paramètres
id(path, obligatoire) —string
Réponses
200—application/json·ScheduledJob. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—scheduled_job_not_found. En-têtes —X-Request-Id409—scheduled_job_changed. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/scheduled-jobs/{id}/run
Trigger an immediate scheduled job execution
runScheduledJob · Authentification — Jeton porteur
Droit — jobs:write
Paramètres
id(path, obligatoire) —string
Corps de la requête (obligatoire)
application/json — RunScheduledJobRequest
Réponses
200—application/json·ScheduledRunAdmission. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—scheduled_job_not_found. En-têtes —X-Request-Id413—payload_too_large. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
Webhooks
GET/v1/webhooks
List the member’s outbound webhooks
webhooks · Authentification — Jeton porteur
Droit — webhooks:read
Paramètres
limit(query, facultatif) —integer· 1–100 ·20cursor(query, facultatif) —string. Cursor returned by the previous page. Omit it to start at the first page.
Réponses
200—application/json·OutboundWebhookPage. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/webhooks
Create an outbound webhook and return its signing secret once
createWebhook · Authentification — Jeton porteur
Droit — webhooks:write
Paramètres
Idempotency-Key(header, obligatoire) —string. Send one key per creation. Hecaton retains the key for 24 hours. Reusing it with a different request returns 409 idempotency_key_reused.
Corps de la requête (obligatoire)
application/json — OutboundWebhookCreate
Réponses
201—application/json·OutboundWebhookIssued. En-têtes —X-Request-Id400—invalid_request,webhook_address_refused. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id409—idempotency_key_reused. En-têtes —X-Request-Id413—payload_too_large. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/webhooks/{id}
Read an outbound webhook
webhook · Authentification — Jeton porteur
Droit — webhooks:read
Paramètres
id(path, obligatoire) —string
Réponses
200—application/json·OutboundWebhook. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—webhook_not_found. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
PATCH/v1/webhooks/{id}
Update the URL, events or enabled state of an outbound webhook
updateWebhook · Authentification — Jeton porteur
Droit — webhooks:write
Paramètres
id(path, obligatoire) —stringIdempotency-Key(header, obligatoire) —string. Send one key per creation. Hecaton retains the key for 24 hours. Reusing it with a different request returns 409 idempotency_key_reused.
Corps de la requête (obligatoire)
application/json — OutboundWebhookPatch
Réponses
200—application/json·OutboundWebhook. En-têtes —X-Request-Id400—invalid_request,webhook_address_refused. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—webhook_not_found. En-têtes —X-Request-Id409—idempotency_key_reused. En-têtes —X-Request-Id413—payload_too_large. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
DELETE/v1/webhooks/{id}
Delete an outbound webhook
deleteWebhook · Authentification — Jeton porteur
Droit — webhooks:write
Paramètres
id(path, obligatoire) —stringIdempotency-Key(header, obligatoire) —string. Send one key per creation. Hecaton retains the key for 24 hours. Reusing it with a different request returns 409 idempotency_key_reused.
Réponses
200—application/json·OutboundWebhookDeleted. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—webhook_not_found. En-têtes —X-Request-Id409—idempotency_key_reused. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/webhooks/{id}/rotate-secret
Rotate the signing secret and return the new value once
rotateWebhookSecret · Authentification — Jeton porteur
Droit — webhooks:write
Paramètres
id(path, obligatoire) —stringIdempotency-Key(header, obligatoire) —string. Send one key per creation. Hecaton retains the key for 24 hours. Reusing it with a different request returns 409 idempotency_key_reused.
Réponses
200—application/json·OutboundWebhookIssued. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—webhook_not_found. En-têtes —X-Request-Id409—idempotency_key_reused. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/webhooks/{id}/test
Queue a signed test delivery
testWebhook · Authentification — Jeton porteur
Droit — webhooks:write
Paramètres
id(path, obligatoire) —stringIdempotency-Key(header, obligatoire) —string. Send one key per creation. Hecaton retains the key for 24 hours. Reusing it with a different request returns 409 idempotency_key_reused.
Réponses
202—application/json·OutboundWebhookAccepted. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—webhook_not_found. En-têtes —X-Request-Id409—idempotency_key_reused,webhook_disabled. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
GET/v1/webhooks/{id}/deliveries
List deliveries and their attempts for an outbound webhook
webhookDeliveries · Authentification — Jeton porteur
Droit — webhooks:read
Paramètres
id(path, obligatoire) —stringlimit(query, facultatif) —integer· 1–100 ·20cursor(query, facultatif) —string. Cursor returned by the previous page. Omit it to start at the first page.
Réponses
200—application/json·OutboundWebhookDeliveryPage. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—webhook_not_found,webhook_delivery_not_found. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
POST/v1/webhooks/{id}/deliveries/{deliveryId}/redeliver
Queue a new delivery of a retained event
redeliverWebhook · Authentification — Jeton porteur
Droit — webhooks:write
Paramètres
id(path, obligatoire) —stringdeliveryId(path, obligatoire) —stringIdempotency-Key(header, obligatoire) —string. Send one key per creation. Hecaton retains the key for 24 hours. Reusing it with a different request returns 409 idempotency_key_reused.
Réponses
202—application/json·OutboundWebhookAccepted. En-têtes —X-Request-Id400—invalid_request. En-têtes —X-Request-Id401—token_missing,token_invalid,token_expired,token_revoked. En-têtes —X-Request-Id403—scope_denied. En-têtes —X-Request-Id404—webhook_delivery_not_found,webhook_not_found. En-têtes —X-Request-Id409—idempotency_key_reused,webhook_disabled. En-têtes —X-Request-Id429—rate_limit_exceeded. En-têtes —X-Request-Id,Retry-After,RateLimit,RateLimit-Policy500—internal_error. En-têtes —X-Request-Id503—service_unavailable. En-têtes —X-Request-Id
OpenAPI
GET/v1/openapi.json
Get the OpenAPI document
getOpenApi · Authentification — Anonyme
Réponses
200—application/json·OpenApiDocument. En-têtes —X-Request-Id