This endpoint creates a project that can then be viewed and managed within the Cord Console.
Note: This feature is only available on paid plans. To use this endpoint, create a project management authentication token using your customer ID and secret. This token is a customer-level server auth token used only for the projects REST API.
Listed below are the fields of the request body to be added as part of the HTTP POST request.
name
required
string
Name of the project
iconURL
optional
string | null
URL for the project icon. It should be a square image of 256x256. This will be used as the avatar for messages and emails coming from your project. If not specified, the Cord logo will be used.
eventWebhookURL
optional
string | null
The URL that the events webhook is sent to
redirectURI
optional
string | null
Custom url link contained in email and slack notifications. These notifications are sent when a user is mentioned or thread is shared and by default, the link points to the page where the conversation happened. For more information, please refer to the API docs
The project 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:
JSON:
{
"error": "<ERROR_CODE>",
"message": "An explanation of the error code."
}
{"error":"<ERROR_CODE>","message":"An explanation of the error code."}
The request body will be a JSON object with two optional fields.
name
optional
string
Name of the project
iconURL
optional
string | null
URL for the project icon. It should be a square image of 256x256. This will be used as the avatar for messages and emails coming from your project. If not specified, the Cord logo will be used.
eventWebhookURL
optional
string | null
The URL that the events webhook is sent to
redirectURI
optional
string | null
Custom url link contained in email and slack notifications. These notifications are sent when a user is mentioned or thread is shared and by default, the link points to the page where the conversation happened. For more information, please refer to the API docs
The response is a list of objects with the following fields:
id
string
The ID for the project.
secret
string
The secret key for the project. Please treat securely as access to this will allow someone to take actions as if they are the project.
name
string
Name of the project
iconURL
string | null
URL for the project icon. It should be a square image of 256x256. This will be used as the avatar for messages and emails coming from your project. If not specified, the Cord logo will be used.
eventWebhookURL
string | null
The URL that the events webhook is sent to
redirectURI
string | null
Custom url link contained in email and slack notifications. These notifications are sent when a user is mentioned or thread is shared and by default, the link points to the page where the conversation happened. For more information, please refer to the API docs
The response is an object with the following fields:
id
string
The ID for the project.
secret
string
The secret key for the project. Please treat securely as access to this will allow someone to take actions as if they are the project.
name
string
Name of the project
iconURL
string | null
URL for the project icon. It should be a square image of 256x256. This will be used as the avatar for messages and emails coming from your project. If not specified, the Cord logo will be used.
eventWebhookURL
string | null
The URL that the events webhook is sent to
redirectURI
string | null
Custom url link contained in email and slack notifications. These notifications are sent when a user is mentioned or thread is shared and by default, the link points to the page where the conversation happened. For more information, please refer to the API docs
This endpoint lets you delete your project and any associated data.This operation will permanently delete the project along with any groups, users, threads and messages associated with that project. Please only use if you are okay with that.
# you can install @cord-sdk/cli for a simpler experience
cord project delete <ID>
# you will be prompted to input the project secret to confirm deletion