Skip to main content
POST
/
v1
/
public
/
cases
Create Case
curl --request POST \
  --url https://api.sanka.com/v1/public/cases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "externalId": "<string>",
  "name": "<string>",
  "status": "<string>",
  "caseStatus": "<string>",
  "currency": "<string>",
  "contactId": "<string>",
  "contactExternalId": "<string>",
  "companyId": "<string>",
  "companyExternalId": "<string>"
}
'
{
  "ok": true,
  "status": "<string>",
  "external_id": "<string>",
  "case_id": "<string>",
  "ctx_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
externalId
string | null
name
string | null
status
string | null
caseStatus
string | null
currency
string | null
contactId
string | null
contactExternalId
string | null
companyId
string | null
companyExternalId
string | null

Response

OK

ok
boolean
required
status
string
required
external_id
string | null
case_id
string | null
ctx_id
string | null