WAKATODOCS

Agent Mail

POST
/agent-mail/send

Required scope: agent_mail:write

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

{}
GET
/agent-mail/addresses

Required scope: agent_mail:read

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Response Body

application/json

{}
GET
/agent-mail/campaigns

Required scope: agent_mail:read

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Query Parameters

status?string
limit?integer

Response Body

application/json

{}
POST
/agent-mail/campaigns

Required scope: agent_mail:write

Drafting never requires a connected email address — from_address_id is optional and the campaign stays a draft until one is set. Sending is a separate run-scoped action. For drips pass ordered steps.

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

{}
GET
/agent-mail/campaigns/{id}

Required scope: agent_mail:read

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string

Response Body

application/json

{}
PATCH
/agent-mail/campaigns/{id}

Required scope: agent_mail:write

Passing steps REPLACES all drip steps.

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

{}
POST
/agent-mail/campaigns/{id}/send

Required scope: agent_mail:run

Broadcast: schedules the send (scheduled_at defaults to now). Drip: starts the sequence. Requires a sender address, an audience, and content on the campaign.

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

{}
GET
/agent-mail/templates

Required scope: agent_mail:read

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Response Body

application/json

{}
POST
/agent-mail/templates

Required scope: agent_mail:write

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

{}
GET
/agent-mail/templates/{id}

Required scope: agent_mail:read

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string

Response Body

application/json

{}
PATCH
/agent-mail/templates/{id}

Required scope: agent_mail:write

Authorization

bearerAuth
AuthorizationBearer <token>

A Space API key, e.g. wks_live_….

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

{}