# SendMQ integration guide

> Background HTTP jobs, signed outbound webhooks, and scheduled requests with automatic retries.

Send `Authorization: Bearer <key>` or `X-API-Key: <key>` from a server. Use `POST /v1/jobs` to enqueue work and `GET /v1/jobs/{id}/attempts` to inspect attempts. See the [OpenAPI contract](https://sendmq.com/docs/openapi.yaml) for request and response fields.

## What is SendMQ?

SendMQ is an HTTP API for background jobs, signed outbound webhooks, and scheduled requests. Your application implements the work at its own endpoint. SendMQ queues the request, retries temporary failures, and records delivery attempts.

[Get started](https://sendmq.com/docs#quickstart).

## Can SendMQ integrate with an external system?

A backend in any language can call SendMQ with a workspace API key over HTTP. In production, SendMQ delivers to public HTTPS endpoints on port 443. Private services and non-HTTP systems, such as SMTP or SFTP, can receive work through an HTTP adapter.

[Read authentication and destination rules](https://sendmq.com/docs#authentication).

## Should I use an HTTP job, a webhook event, or a schedule?

Use an HTTP job to call one endpoint, optionally with a delay. Publish a webhook event to fan out a signed payload to matching subscriber endpoints. Use a schedule for a one-time future request or a recurring cron or rate expression.

[Compare the API operations](https://sendmq.com/docs#endpoints).

## What happens when a delivery fails?

SendMQ retries connection failures, timeouts, HTTP 408 and 429, and 5xx responses up to the configured attempt limit. Deliveries are at least once, so receivers should deduplicate retries using X-SendMQ-Delivery-Id.

[Read retry and idempotency rules](https://sendmq.com/docs#retries).

## How do I verify a SendMQ webhook?

Read X-SendMQ-Signature and verify its HMAC-SHA256 using the full signing secret and the original request body bytes with the signed timestamp. Verify the signature before parsing the request body.

[See verification examples](https://sendmq.com/docs#webhooks).

## Can an AI assistant connect to SendMQ?

The public SendMQ MCP endpoint serves integration guidance without credentials. The workspace MCP server runs locally over stdio and connects to the SendMQ API with a scoped key. Enable writes in the workspace server to enqueue jobs, create schedules, publish webhooks, or schedule a follow-up against a configured support endpoint.

[Connect an MCP client](https://sendmq.com/docs/mcp).

## How do I schedule an AI agent follow-up?

Create a job with run_at, an Idempotency-Key, and agent_action containing the ticket ID and agent run ID. You can also use sendmq_schedule_follow_up on workspace MCP with writes enabled and a configured support endpoint. Search by ticket or agent run in Agent Actions. The support endpoint can report sent or skipped in X-SendMQ-Action-Outcome on a successful response.

[Schedule and inspect a follow-up](https://sendmq.com/for-ai-agents).
