Notra Webhooks API
Manage outbound webhook subscriptions and delivery history.
Manage outbound webhook subscriptions and delivery history.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/usenotra-com:usenotra-com-webhooks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Notra Webhooks API
version: 1.0.0
description: OpenAPI schema for Notra content endpoints. Use GET /v1/status for public reachability. Error responses include recovery guidance. Breaking changes ship under a new major path; deprecated operations send Deprecation and Sunset headers at least 90 days before removal.
servers:
- url: https://api.usenotra.com
description: Production
- url: https://demo-api.usenotra.com
description: Sandbox with sample data. Get a free sandbox key at demo.usenotra.com, no signup needed
security:
- BearerAuth: []
tags:
- name: Webhooks
description: Manage outbound webhook subscriptions and delivery history.
paths:
/v1/webhooks:
get:
tags:
- Webhooks
operationId: listWebhookEndpoints
summary: List outbound webhook subscriptions
x-mint:
metadata:
description: Lists every outbound webhook endpoint in the workspace with the events it subscribes to. Signing secrets are not included; they are shown once on creation.
responses:
'200':
description: Endpoints, without signing secrets
content:
application/json:
schema:
type: object
properties:
endpoints:
type: array
items:
type: object
properties:
id:
type: string
description: The endpoint's ID, used as endpointId in endpoint routes.
organizationId:
type: string
description: ID of the organization that owns the endpoint.
url:
type: string
description: HTTPS URL that receives signed POST requests.
events:
type: array
items:
type: string
enum:
- post.generation.completed
- post.generation.failed
- post.generation.skipped
- brand_identity.generation.completed
- brand_identity.generation.failed
- post.published
- post.created
- post.updated
- post.deleted
- post.unpublished
- geo.scan.completed
- geo.scan.failed
- geo.alert.triggered
- autopilot.run.finished
description: Event types delivered to this endpoint.
enabled:
type: boolean
description: Disabled endpoints receive no deliveries.
createdAt:
type: string
description: When the endpoint was created, as an ISO 8601 timestamp.
required:
- id
- organizationId
- url
- events
- enabled
- createdAt
description: Every webhook endpoint in the workspace.
required:
- endpoints
description: The workspace's webhook endpoints.
'400':
description: Invalid webhook request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Subscription required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Webhook not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Subscription verification failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Webhooks unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
post:
tags:
- Webhooks
operationId: createWebhookEndpoint
summary: Subscribe an HTTPS endpoint to Notra events
x-mint:
metadata:
description: Subscribes an HTTPS URL to Notra events such as post generation, publishing, GEO scans and Autopilot runs. Returns the signing secret once, in this response.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
type: string
maxLength: 2048
format: uri
events:
type: array
items:
type: string
enum:
- post.generation.completed
- post.generation.failed
- post.generation.skipped
- brand_identity.generation.completed
- brand_identity.generation.failed
- post.published
- post.created
- post.updated
- post.deleted
- post.unpublished
- geo.scan.completed
- geo.scan.failed
- geo.alert.triggered
- autopilot.run.finished
minItems: 1
maxItems: 14
required:
- url
- events
responses:
'201':
description: Endpoint and one-time signing secret
content:
application/json:
schema:
type: object
properties:
endpoint:
type: object
properties:
id:
type: string
description: The endpoint's ID, used as endpointId in endpoint routes.
organizationId:
type: string
description: ID of the organization that owns the endpoint.
url:
type: string
description: HTTPS URL that receives signed POST requests.
events:
type: array
items:
type: string
enum:
- post.generation.completed
- post.generation.failed
- post.generation.skipped
- brand_identity.generation.completed
- brand_identity.generation.failed
- post.published
- post.created
- post.updated
- post.deleted
- post.unpublished
- geo.scan.completed
- geo.scan.failed
- geo.alert.triggered
- autopilot.run.finished
description: Event types delivered to this endpoint.
enabled:
type: boolean
description: Disabled endpoints receive no deliveries.
createdAt:
type: string
description: When the endpoint was created, as an ISO 8601 timestamp.
required:
- id
- organizationId
- url
- events
- enabled
- createdAt
description: The endpoint that was created.
secret:
type: string
description: Signing secret, starting with whsec_. Returned only here; use it to verify the x-notra-signature header on each request.
required:
- endpoint
- secret
description: The new webhook endpoint and its signing secret.
'400':
description: Invalid webhook request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Subscription required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Webhook not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'413':
description: Request body exceeds 16 MiB
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Subscription verification failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Webhooks unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/webhooks/{endpointId}:
delete:
tags:
- Webhooks
operationId: deleteWebhookEndpoint
summary: Remove a webhook subscription and cancel unsent deliveries
x-mint:
metadata:
description: Removes a webhook endpoint from the workspace so it receives no further events. Deliveries to it that have not been sent yet are cancelled.
parameters:
- schema:
type: string
minLength: 1
required: true
name: endpointId
in: path
responses:
'200':
description: Deleted endpoint ID
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: ID of the endpoint that was deleted or the delivery that was queued for retry.
required:
- id
description: Confirms which resource the request acted on.
'400':
description: Invalid webhook request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Subscription required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Webhook not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Subscription verification failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Webhooks unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/webhooks/deliveries:
get:
tags:
- Webhooks
operationId: listWebhookDeliveries
summary: List webhook deliveries
x-mint:
metadata:
description: Lists webhook deliveries across the workspace's endpoints, 25 per page and newest first. Filter by status, such as pending, retrying, succeeded or failed.
parameters:
- schema:
type:
- integer
- 'null'
minimum: 0
maximum: 100000
default: 0
description: Deliveries to skip. Pages hold 25 deliveries, newest first, so pass a multiple of 25. Defaults to 0.
required: false
description: Deliveries to skip. Pages hold 25 deliveries, newest first, so pass a multiple of 25. Defaults to 0.
name: offset
in: query
- schema:
type: string
enum:
- all
- pending
- sending
- retrying
- succeeded
- failed
- cancelled
default: all
description: Only return deliveries with this status. Defaults to all.
required: false
description: Only return deliveries with this status. Defaults to all.
name: status
in: query
responses:
'200':
description: Delivery history
content:
application/json:
schema:
type: object
properties:
deliveries:
type: array
items:
type: object
properties:
id:
type: string
description: Sent to the endpoint in the x-notra-delivery-id header.
eventId:
type: string
description: The event this delivery carries, sent in the x-notra-event-id header. Each subscribed endpoint gets its own delivery of the same event.
endpointId:
type: string
description: ID of the endpoint the delivery is sent to.
url:
type: string
description: URL the delivery is sent to.
eventType:
type: string
enum:
- post.generation.completed
- post.generation.failed
- post.generation.skipped
- brand_identity.generation.completed
- brand_identity.generation.failed
- post.published
- post.created
- post.updated
- post.deleted
- post.unpublished
- geo.scan.completed
- geo.scan.failed
- geo.alert.triggered
- autopilot.run.finished
description: Type of event the delivery carries.
status:
type: string
enum:
- pending
- sending
- retrying
- succeeded
- failed
- cancelled
description: pending waits for its first attempt, sending is in flight and retrying waits for another attempt. succeeded got a 2xx response; failed ran out of attempts or hit an error that is not retried; cancelled stopped because the endpoint was removed or disabled.
attemptCount:
type: number
description: Attempts made so far. Up to 8 attempts are made, and a manual retry allows 8 more.
nextAttemptAt:
type: string
description: When the next attempt is due. Only meaningful while pending or retrying.
createdAt:
type: string
description: When the delivery was created, as an ISO 8601 timestamp.
statusCode:
type:
- number
- 'null'
description: HTTP status of the latest attempt. Null before the first attempt finishes or when no response came back.
error:
type:
- string
- 'null'
description: 'Error code of the latest attempt: http_<status> for a non-2xx response, or network, timeout (no response within 10 seconds), unsafe_url, signing_failed or lease_expired_outcome_unknown. Null when it succeeded or has not finished.'
required:
- id
- eventId
- endpointId
- url
- eventType
- status
- attemptCount
- nextAttemptAt
- createdAt
- statusCode
- error
description: Up to 25 deliveries, newest first.
hasMore:
type: boolean
description: More deliveries follow. Request the next page with offset + 25.
required:
- deliveries
- hasMore
description: A page of webhook deliveries.
'400':
description: Invalid webhook request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Subscription required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Webhook not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Subscription verification failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Webhooks unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/webhooks/deliveries/{deliveryId}:
get:
tags:
- Webhooks
operationId: getWebhookDelivery
summary: Get payload and attempt history for a delivery
x-mint:
metadata:
description: Returns one webhook delivery with the request body Notra sent and every attempt, oldest first, including response status codes, errors and durations.
parameters:
- schema:
type: string
minLength: 1
required: true
name: deliveryId
in: path
responses:
'200':
description: Delivery detail
content:
application/json:
schema:
type: object
properties:
delivery:
type: object
properties:
id:
type: string
description: Sent to the endpoint in the x-notra-delivery-id header.
eventId:
type: string
description: The event this delivery carries, sent in the x-notra-event-id header. Each subscribed endpoint gets its own delivery of the same event.
endpointId:
type: string
description: ID of the endpoint the delivery is sent to.
url:
type: string
description: URL the delivery is sent to.
eventType:
type: string
enum:
- post.generation.completed
- post.generation.failed
- post.generation.skipped
- brand_identity.generation.completed
- brand_identity.generation.failed
- post.published
- post.created
- post.updated
- post.deleted
- post.unpublished
- geo.scan.completed
- geo.scan.failed
- geo.alert.triggered
- autopilot.run.finished
description: Type of event the delivery carries.
status:
type: string
enum:
- pending
- sending
- retrying
- succeeded
- failed
- cancelled
description: pending waits for its first attempt, sending is in flight and retrying waits for another attempt. succeeded got a 2xx response; failed ran out of attempts or hit an error that is not retried; cancelled stopped because the endpoint was removed or disabled.
attemptCount:
type: number
description: Attempts made so far. Up to 8 attempts are made, and a manual retry allows 8 more.
nextAttemptAt:
type: string
description: When the next attempt is due. Only meaningful while pending or retrying.
createdAt:
type: string
description: When the delivery was created, as an ISO 8601 timestamp.
statusCode:
type:
- number
- 'null'
description: HTTP status of the latest attempt. Null before the first attempt finishes or when no response came back.
error:
type:
- string
- 'null'
description: 'Error code of the latest attempt: http_<status> for a non-2xx response, or network, timeout (no response within 10 seconds), unsafe_url, signing_failed or lease_expired_outcome_unknown. Null when it succeeded or has not finished.'
payload:
type: string
description: The JSON request body sent to the endpoint, as a string.
required:
- id
- eventId
- endpointId
- url
- eventType
- status
- attemptCount
- nextAttemptAt
- createdAt
- statusCode
- error
- payload
description: The delivery with its request body.
attempts:
type: array
items:
type: object
properties:
id:
type: string
description: The attempt's ID.
deliveryId:
type: string
description: ID of the delivery the attempt belongs to.
attemptNumber:
type: number
description: Position of the attempt, starting at 1.
startedAt:
type: string
description: When the attempt started, as an ISO 8601 timestamp.
finishedAt:
type:
- string
- 'null'
description: Null while the attempt is in flight.
statusCode:
type:
- number
- 'null'
description: HTTP status the endpoint returned, or null without a response.
error:
type:
- string
- 'null'
description: 'Error code: http_<status> for a non-2xx response, or network, timeout, unsafe_url, signing_failed or lease_expired_outcome_unknown. Null on success or while in flight.'
durationMs:
type:
- number
- 'null'
description: Request duration in milliseconds.
required:
- id
- deliveryId
- attemptNumber
- startedAt
- finishedAt
- statusCode
- error
- durationMs
description: Every attempt, oldest first.
required:
- delivery
- attempts
description: A webhook delivery and its attempts.
'400':
description: Invalid webhook request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Subscription required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Webhook not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Subscription verification failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Webhooks unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/webhooks/deliveries/{deliveryId}/retry:
post:
tags:
- Webhooks
operationId: retryWebhookDelivery
summary: Retry a failed delivery, retaining its history
x-mint:
metadata:
description: Queues a failed webhook delivery to be sent again, keeping its earlier attempts. Works only for active endpoints, one minute or more after the last attempt.
parameters:
- schema:
type: string
minLength: 1
required: true
name: deliveryId
in: path
responses:
'200':
description: Queued delivery ID
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: ID of the endpoint that was deleted or the delivery that was queued for retry.
required:
- id
description: Confirms which resource the request acted on.
'400':
description: Invalid webhook request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Subscription required
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Webhook not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Subscription verification failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Webhooks unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: string
code:
type: string
recovery:
type: string
required:
- error
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: API Key
description: 'Send your API key in the Authorization header as Bearer API_KEY. Account API keys work in every workspace you belong to: send X-Notra-Organization-Id with the workspace id or slug to choose one. Workspace endpoints require it when you belong to more than one workspace; GET /v1/me/workspaces works without it. Organization keys only accept their own workspace there.'
externalDocs:
description: Notra API versioning and deprecation policy
url: https://www.usenotra.com/docs/api/versioning