All available operations for manipulating applications and their information
This endpoint creates an application that can then be viewed and managed within the Cord Console.
Note: To be able to use this endpoint, you'll have to create an application management authentication token using your customer ID and secret. This token is a customer-level server auth token used only for the applications REST API.
POST https://api.cord.com/v1/applications
Listed below are the fields of the request body to be added as part of the HTTP POST request.
curl "https://api.cord.com/v1/applications" \
-X POST \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Planet Express"
}'
If the request succeeds, the response will be:
{
"success": true,
"message": "Application created",
"applicationID": "<APPLICATION_ID>",
"secret": "<SECRET_KEY>"
}
The application secret
that you created above is extremely sensitive. You should protect it just like you would a password or other sensitive credential. This token is used for server-to-server communication and should never be used in the browser. For more information, check out our Authentication reference guide
If the request does not succeed, the response will instead contain an error
and message
explaining what went wrong:
{
"error": "<ERROR_CODE>",
"message": "An explanation of the error code."
}
This endpoint lets you update various properties of your application.
PUT https://api.cord.com/v1/applications/<ID>
The request body will be a JSON object with two optional fields.
curl "https://api.cord.com/v1/applications/<ID>" \
-X PUT \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Planet Express, Inc"
}'
If the request succeeds, the response will be:
{
"success": true,
"message": "✅ You successfully updated application <ID>",
}
This endpoint lists all your applications.
GET https://api.cord.com/v1/applications
This REST endpoint has no request body.
curl "https://api.cord.com/v1/applications" \
-H "Authorization: Bearer <ACCESS_TOKEN>"
If successful, the response will be similar to:
[
{
"id": "124",
"name": "Planet Express"
},
{
"id": "123",
"name": "Awesome Express",
}
]
This endpoint lets you delete your application and any associated data.This operation will permanently delete the application along with any organizations, users, threads and messages associated with that application. Please only use if you are okay with that.
DELETE https://api.cord.com/v1/applications/<ID>
The request body contains only one field:
curl "https://api.cord.com/v1/applications/<ID>" \
-X DELETE \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"secret": <SECRET_KEY>
}'
If the request succeeds, the response will be:
{
"success": true,
"message": "💀 You successfully deleted application <ID>",
}