Operator
Create a project and its first admin key (shown once)
POST
projectKeyheader
AuthorizationBearer <token>A project API key (sk_live_…) with read, enroll or admin scope.
application/json- body
slug*stringLength
3 <= length <= 48name*stringLength
1 <= length <= 120settings?Default Response
application/json- response
success*trueValue in
truedata*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" }}