EventSources

Test-fire event source

Changed on

Delivers a sample payload to every task subscribed to this source's external.<event_name> as a test run: real research and output, but every write-style tool refuses and every delivery is captured on the run instead of being sent. Called from an agent chat, the chat is signalled when each run ends, so it need not poll. Returns the started runs. 422 when no task listens to the event yet, or when every subscribed task is busy or the account is out of AI credits.

post/event_sources/{id}/test

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required
payload, object

The body a real delivery would carry; the run receives it as event.data. Defaults to {}.

Response

Accepted — the test runs execute in the background.

ListResponseAiTaskRun required
object, 'list' required
data, AiTaskRun[] required
has_more, boolean required
url, string required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    3 more changes in this revision