Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Prodantix Workflows API
version: 0.1.0
servers:
- url: https://api.prodantix.com
description: Flags and messaging
- url: https://eu.api.prodantix.com
description: Event ingestion (EU)
- url: https://eu.replay.prodantix.com
description: Session replay (EU)
tags:
- name: Workflows
paths:
/v1/workflows/{workflowId}/hooks:
post:
summary: Enroll a person through a workflow's inbound address
tags:
- Workflows
description: A JSON object naming the person by distinctId or email, with optional properties the run receives as payload. Signed in the x-prodantix-signature header as t={unix seconds},v1={hex HMAC-SHA256 of "{t}.{body}" under the workflow's secret}, and believed within five minutes. A replay of the same request enrolls nobody twice. At most 600 requests a minute and 32 KB a body.
security:
- billingSignature: []
parameters:
- name: workflowId
in: path
required: true
description: The workflow
schema:
type: string
- name: Idempotency-Key
in: header
required: false
description: Up to 255 characters. A retry with the same key within 24 hours answers the first result instead of running again; the same key with a different request answers 409.
schema:
type: string
responses:
'202':
description: The person is on their way into the workflow
'400':
description: The body names nobody or is not the documented object
'401':
description: The signature is missing, wrong or over five minutes old
'403':
description: The company's plan does not include inbound webhooks
'404':
description: No switched-on workflow listens at this address
'413':
description: The body is over 32 KB
'429':
description: Over 600 requests this minute
operationId: postV1WorkflowsByWorkflowIdHooks
x-operation-id-source: derived
/v1/projects/{projectId}/workflows/{workflowId}/hook:
get:
summary: Read a workflow's inbound address
tags:
- Workflows
description: The address a webhook-triggered workflow listens at and the last four characters of its secret. Needs prodantix.workflows.read.
security:
- bearerAuth: []
parameters:
- name: projectId
in: path
required: true
description: The project
schema:
type: string
- name: workflowId
in: path
required: true
description: The workflow
schema:
type: string
responses:
'200':
description: The address
content:
application/json:
schema:
type: object
properties:
url:
type: string
description: Where the workflow's requests go.
secretHint:
type:
- string
- 'null'
description: The last four characters of the secret, or none before one is minted.
required:
- url
'404':
description: No such workflow
operationId: getV1ProjectsByProjectIdWorkflowsByWorkflowIdHook
x-operation-id-source: derived
/v1/projects/{projectId}/workflows/{workflowId}/hook/secret:
post:
summary: Mint a workflow's signing secret
tags:
- Workflows
description: Mints a new secret for the workflow's inbound address and returns it this once; the old one stops working. Needs prodantix.workflows.update and a plan with inbound webhooks.
security:
- bearerAuth: []
parameters:
- name: projectId
in: path
required: true
description: The project
schema:
type: string
- name: workflowId
in: path
required: true
description: The workflow
schema:
type: string
- name: Idempotency-Key
in: header
required: false
description: Up to 255 characters. A retry with the same key within 24 hours answers the first result instead of running again; the same key with a different request answers 409.
schema:
type: string
responses:
'200':
description: The new secret
content:
application/json:
schema:
type: object
properties:
url:
type: string
secret:
type: string
description: The whole secret, shown this once.
secretHint:
type: string
required:
- url
- secret
- secretHint
'403':
description: The plan does not include inbound webhooks
'404':
description: No such workflow
operationId: postV1ProjectsByProjectIdWorkflowsByWorkflowIdHookSecret
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: An end-user access token.
billingSignature:
type: apiKey
in: header
name: bomdisoft-billing-signature
description: HMAC signature over the raw request body, verified against a shared secret.