API ReferenceChannels
Delete a channel
Delete a channel. All pending messages will be lost.
DELETE
/v1/channels/{channelId}Authorization
ApiKeyAuth AuthorizationBearer <token>
API key authentication. Keys are prefixed with environment:
npk_live_for productionnpk_test_for testing/staging
In: header
Path Parameters
channelId*string
Channel ID
Response Body
application/json
application/json
curl -X DELETE "https://api.npayload.com/v1/channels/string"Empty
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}Was this page helpful?