Open a support case
POST
/v1/orgs/{org}/support-cases
const url = 'https://api.replifier.com/v1/orgs/example/support-cases';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"subject":"example","description":"example","category":"sending","brandId":"example","errorCode":"example","contextPayload":{"additionalProperty":"example"},"locale":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/orgs/example/support-cases \ --header 'Content-Type: application/json' \ --data '{ "subject": "example", "description": "example", "category": "sending", "brandId": "example", "errorCode": "example", "contextPayload": { "additionalProperty": "example" }, "locale": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
subject
required
string
description
required
string
category
string
brandId
string
errorCode
string
contextPayload
Payload collected by the dashboard; it is redacted before being stored
object
key
additional properties
locale
string
Responses
Section titled “Responses”An identical open case already existed (same errorCode and resource in the last 24 h): that one is returned
Media typeapplication/json
object
id
required
string
subject
required
string
status
required
string
category
required
string
routedTo
required
string
linearIdentifier
required
string
createdAt
required
string
updatedAt
required
string
Example
{ "status": "open", "category": "sending", "routedTo": "replifier"}Case created
Media typeapplication/json
object
id
required
string
subject
required
string
status
required
string
category
required
string
routedTo
required
string
linearIdentifier
required
string
createdAt
required
string
updatedAt
required
string
Example
{ "status": "open", "category": "sending", "routedTo": "replifier"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}