Skip to main content
POST
/
api
/
v1
/
missions
Create mission
curl --request POST \
  --url http://localhost:3890/api/v1/missions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": "<string>",
  "prompt": "<string>",
  "name": "<string>",
  "endDate": "2023-11-07T05:31:56Z"
}
'
{
  "ok": true,
  "data": null
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Configure via the apiKeys field in polpo.json or the POLPO_API_KEY environment variable.

Body

application/json
data
string
required
Minimum string length: 1
prompt
string
name
string
status
enum<string>
Available options:
draft,
scheduled,
recurring,
active,
paused,
completed,
failed,
cancelled
endDate
string<date-time>
notifications
object

Response

201 - application/json

Mission created

ok
boolean
required
data
unknown