Connector events
Receive signed Composio events in a13n, save event history, or start an Agent conversation for each event using a service account.
Connector events let an external account start an Agent when something happens, such as a new issue or email. a13n receives and saves the event, then starts a new Thread or sends a message to an existing Thread using the Agent and service account you selected. You can also choose to save events without running an Agent.
Create a subscription
- Add a Composio Provider and authorize the account under Connections. Ask your operator to configure the public callback URL below.
- Open the Connection's Events tab. A workspace administrator clicks Configure callback once for the Provider's Composio project.
- Click Add subscription, choose an event type, and complete its parameters and any setup instructions. Available events and forms come from Composio.
- Choose Save event, New thread each time with an existing Session ID, or Reuse one thread with an existing Thread ID. Execution requires an administrator to select the Agent and a service account with permission to run it. Saving fixes the selected Agent revision.
- Wait for Updating subscription… to finish, generate a matching event in the external service, and open the subscription's Recent events. Click Open conversation after submission to inspect the Run.
The Composio project shares one callback across its subscriptions. If another application already uses the project's callback, use a separate project and Provider. a13n reports the conflict and preserves the existing callback.
Choose where events run
new_threadrequiressession_id: each event starts a separate Thread in that Session. Threads have separate conversation histories and follow the Session's existing shared-resource and memory settings.threadrequiresthread_id: each event queues a message for a subsequent Run in that Thread, continuing its history. Messages do not steer a running Run. A Run waiting for answers still requires an explicit resume.store_onlysaves events without execution.
Both execution modes retain principal_id, agent_id, optional agent_revision_id and instruction. Destinations must already exist in the current workspace; do not supply both IDs. Changing a target affects future events only. Inbox capacity failures use bounded delivery retries; a busy Thread alone does not discard an event. Submitted means Inbox handoff, not execution completion.
Older saved targets without a Session keep their original behavior (one new Session per event). Supply a Session when editing their target. Upgrade every Control before saving the new target formats; old versions cannot read them. No database migration or rewrite of accepted events is needed.
Configure the public callback
The operator sets a publicly reachable HTTPS base URL in Service configuration:
[connector_events]
public_url = "https://events.example.com"Route POST /api/v1/connector-webhooks/* on that origin to the deployment's Control service. The Events tab displays the exact Provider callback URL. Keep management API authentication enabled; the callback authenticates Composio signatures itself. Deploy the new version to every serving Control before configuring the callback.
Rotate signing key updates the project's signing key. API key rotation uses the ordinary Provider editor and must retain the same Composio project. Recovery checks the current remote key after an interrupted rotation; Retry callback setup appears if automatic attempts are exhausted.
Manage subscriptions and history
Pause stops accepting new executable events for the subscription; Enable rechecks the account and execution permissions. Retire ends the subscription permanently. Events already accepted continue using their saved target even after these changes.
Edit changes the name or execution target for future events. To change the source account, event type or parameters, retire the subscription and create a replacement. A revoked or changed Connection automatically pauses its subscriptions.
| Event status | Meaning and next action |
|---|---|
| Stored | Saved without starting an Agent |
| Pending | Accepted and waiting for submission |
| Submitted | Handed to Inbox; open the conversation for execution status |
| Ignored | Arrived while the subscription was paused or retired |
| Failed | Inspect the reason; an administrator can retry eligible delivery failures |
Temporary submission failures, including rate limits and timeouts, retry with bounded exponential backoff and respect Retry-After. Permission, target and input refusals, and unexpected internal errors, stop automatic delivery attempts for that event. They do not pause the subscription. Inspect the saved failure code and reason before retrying. Once submitted, an event is not delivered again because its run fails.
Retry subscription setup recovers a failed remote subscription operation. Retry delivery retries the saved event after its underlying problem is fixed. Delivery retry preserves the original Agent target; an incompatible event payload cannot be retried into execution.
Event payloads remain for seven days by default, while event identities and receipts remain for thirty days. Conversations retain their own history. Operators can adjust these values and callback/backlog bounds in the configuration reference.
Use the HTTP API
Use a workspace API key and the usual workspace selection. Paths below start with /api/v1; list endpoints use cursor pagination.
| Task | Method and path |
|---|---|
| Discover event types | GET /connector-providers/{provider_id}/apps/{app}/event-types |
| Inspect/configure shared callback | GET / POST /connector-providers/{provider_id}/event-webhook |
| List/create subscriptions | GET / POST /connector-triggers |
| Read/edit target | GET / PATCH /connector-triggers/{trigger_id} |
| Change subscription state | POST /connector-triggers/{trigger_id}/{enable,pause,retire,reconcile} |
| Read events | GET /connector-events?trigger_id={trigger_id} |
| Retry delivery | POST /connector-events/{event_id}/retry |
Creation requires Idempotency-Key; updates and commands require the current If-Match ETag. Callback setup uses the Provider's ETag. See the API reference for request schemas. HTTP 204 on the signed callback confirms saved receipt; execution results are available through the returned event's Inbox/Thread references.
Pausing or retiring during creation takes effect at the local database state update, without waiting for the remote operation. Earlier events continue; later events become ignored when associated with the subscription.
If a creation request was sent but its response was lost, subscription_creation_unconfirmed requires operator attention. Service does not adopt a remote subscription merely because its parameters match. Resolve the subscription in the Provider, retire the local record, then create a replacement. Other retry-safe operations can be resumed after the last interrupted attempt expires; active attempts cannot be replaced.