Zum Inhalt springen
API-ReferenzPartner-Schreib-API

Partner Submissions

List your submissions

GET
/v1/partner/submissions

What became of everything this API key submitted, oldest change first. Poll with updatedSince set to the latest updatedAt you have seen.

Authorization

PartnerApiKeyAuth
headerX-API-Key<token>

Partner API key (sk_…) with the partner: write permission.

Query Parameters

limit?number
Range1 <= value <= 100
Default50
page?number
Range1 <= value
Default1
kind?string
Value in"event""location""showtime"
updatedSince?string

Only submissions whose state changed at or after this instant.

Formatdate-time

Response Body

Successful response

application/json
  1. response
data*array<>
pagination*
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/partner/submissions'
Example Response
{  "data": [    {      "externalId": "string",      "kind": "event",      "candidateId": "10f4deb6-fd4e-4907-a47e-355caf6e449d",      "state": "pending",      "reason": "string",      "record": {        "type": "event_series",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "datesInReview": true,      "changePending": true,      "submittedAt": "2019-08-24T14:15:22Z",      "decidedAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "limit": 0,    "page": 0,    "hasMore": true  }}

Read one submission

GET
/v1/partner/submissions/{kind}/{externalId}

The state of your submission under this external id. 404 when this API key never submitted it.

Authorization

PartnerApiKeyAuth
headerX-API-Key<token>

Partner API key (sk_…) with the partner: write permission.

Path Parameters

kind*string
Value in"event""location""showtime"
externalId*string

Your own id for this item. Scoped to your API key and the item kind; pushing the same id again updates your submission instead of creating a second one.

Length1 <= length <= 512

Response Body

Successful response

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.cixtra.app/api/v1/partner/submissions/event/string'
Example Response
{  "data": {    "externalId": "string",    "kind": "event",    "candidateId": "10f4deb6-fd4e-4907-a47e-355caf6e449d",    "state": "pending",    "reason": "string",    "record": {      "type": "event_series",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    },    "datesInReview": true,    "changePending": true,    "submittedAt": "2019-08-24T14:15:22Z",    "decidedAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}