Operator

Create a project and its first admin key (shown once)

POST
/v1/admin/projects

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Request Body

application/json
  1. body
slug*string
Length3 <= length <= 48
name*string
Length1 <= length <= 120
settings?

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X POST 'http://localhost:8080/v1/admin/projects' \  -H 'Content-Type: application/json' \  -d '{  "slug": "string",  "name": "string"}'
{  "success": true,  "data": {    "project": {      "id": "string",      "slug": "string",      "name": "string",      "settings": {        "attribution_days": 1,        "sms_countries": [          "st"        ],        "send_window": {          "days": [            "string"          ],          "from": "string",          "to": "string",          "tz": "contact"        },        "attrs_schema": {          "property1": {            "type": "string",            "label": "string",            "values": [              "string"            ]          },          "property2": {            "type": "string",            "label": "string",            "values": [              "string"            ]          }        },        "retention_days": 7,        "store_inbound_bodies": true,        "match_replies_outside_thread": true,        "crm": {          "deal_selection": "newest_open"        },        "allo": {          "outcome_map": {            "property1": "string",            "property2": "string"          }        },        "max_steps_per_tick": 1,        "mock": {          "property1": null,          "property2": null        },        "unsubscribe_url": "string"      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    },    "api_key": "string"  },  "meta": {    "request_id": "string"  }}