POST
/
v1
/
events
/
{event_name}
JavaScript
import Anchorbrowser from 'anchorbrowser';

const client = new Anchorbrowser({
  apiKey: 'My API Key',
});

const successResponse = await client.events.signal('workflow_completed', {
  data: { message: 'bar', result: 'bar', timestamp: 'bar' },
});

console.log(successResponse.data);
{
  "data": {
    "status": "success"
  }
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

event_name
string
required

The name of the event to signal

Example:

"workflow_completed"

Body

application/json

Response

200
application/json

Event signaled successfully

The response is of type object.