Notifications
Notification channels (email, Slack or Microsoft Teams) that receive the messages of an organization.
List notifications
GET /v1/organizations/notifications?action=get_notifications&org_id=org-k3m9q2x7d1a5z8w4
Lists the notification channels of the organization. Tokens and webhook URLs are masked.
Who can call it: any member: owner, admin, planner, viewer or billing. MFA policy action: view. If the organization requires MFA for it and your user has none, the call is refused with 501 MFA needed.
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <access token> |
Example
curl -X GET 'https://console.cloudplans.io/v1/organizations/notifications?action=get_notifications&org_id=org-k3m9q2x7d1a5z8w4' \
-H 'Authorization: Bearer $TOKEN'
Query string
| Name | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Fixed value get_notifications |
| org_id | string | Yes | The Organization ID |
Response
{
"status": 200,
"response": "OK",
"notifications": "[{\"id\": \"noti-3b7d9f10c4e2a158\", \"org_id\": \"org-k3m9q2x7d1a5z8w4\", \"name\": \"Ops channel\", \"description\": \"Alerts of the night plans\", \"notification_type\": \"teams\", \"target\": \"https://outlook.office.com/webhook/AbCd****wXyZ\", \"token\": \"***************\", \"created_by\": \"maria.garcia@example.com\", \"creation_date\": \"2026-11-02 08:12:44.512310\"}]"
}
notifications after parsing:
[
{
"id": "noti-3b7d9f10c4e2a158",
"org_id": "org-k3m9q2x7d1a5z8w4",
"name": "Ops channel",
"description": "Alerts of the night plans",
"notification_type": "teams",
"target": "https://outlook.office.com/webhook/AbCd****wXyZ",
"token": "***************",
"created_by": "maria.garcia@example.com",
"creation_date": "2026-11-02 08:12:44.512310"
}
]
notifications is a JSON-encoded string: parse it to get the array ("[]" if there are none). token is always ***************. A target that is a URL is shown as https://host/ plus the first and last 4 characters of the path; emails and Slack channels are shown in full.
Errors
Every error is a JSON body {"status": <code>, "response": "<message>"} (see Common conventions).
| HTTP | When |
|---|---|
| 401 | The token is missing, expired (Invalid or expired token) or revoked (Token has been revoked). Log in again and reload it. |
| 403 | Your role in the organization does not allow it: You are not allowed to perform this action. Permission errors never carry a code. |
| 500 | Invalid action; or {"response": "Error", "data": "Error"} (no status key) when the channels cannot be read. |
| 501 | The organization requires MFA for view actions and your user has none: MFA needed. Enable MFA in your account page first. |
| 502 | A missing action or org_id: API Gateway {"message": "Internal server error"}. |
Create notification
POST /v1/organizations/notifications/create?action=create_notification
Creates a notification channel. Secrets are never returned in full: the audit history and the listing only show their first and last characters. An organization without a subscription can have 1 notification channel; with an active subscription the number of channels is unlimited. Validation runs before the role check.
Who can call it: owner, admin or planner. MFA policy action: create. If the organization requires MFA for it and your user has none, the call is refused with 501 MFA needed.
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <access token> |
Example
curl -X POST 'https://console.cloudplans.io/v1/organizations/notifications/create?action=create_notification' \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"org_id": "org-k3m9q2x7d1a5z8w4",
"name": "Ops channel",
"type": "email",
"target": "ops@example.com",
"comments": "Alerts of the night plans"
}'
Query string
| Name | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Fixed value create_notification |
Body
| Name | Type | Required | Description |
|---|---|---|---|
| org_id | string | Yes | The Organization ID |
| name | string | Yes | Name of the channel, up to 200 characters |
| type | string | Yes | email, slack or teams |
| target | string | Yes | Up to 2048 characters, no spaces. email: an email address. slack: a channel such as #alerts (^[#@]?[A-Za-z0-9._-]{1,80}$). teams: an https webhook URL whose host is webhook.office.com, outlook.office.com, outlook.office365.com, logic.azure.com or api.powerplatform.com (or a subdomain), on port 443. |
| comments | string | Yes | Free text, up to 2000 characters (can be empty) |
| token | string | slack only |
The Slack bot token, 8 to 512 characters. Ignored for the other types. |
Response
{
"status": 200,
"response": "Resource added"
}
The response does not carry the new id: call List notifications to read it.
Errors
Every error is a JSON body {"status": <code>, "response": "<message>"} (see Common conventions).
| HTTP | When |
|---|---|
| 400 | Invalid type, name or comments. Allowed types: email, slack, teams; Invalid email address, Invalid Slack channel, A Teams webhook must be an https URL of ..., Invalid target; Invalid Slack token. |
| 400 | Invalid JSON payload: the body is missing, is not valid JSON or is not a JSON object. |
| 400 | Action query string parameter is required (no action) or Unknown action. |
| 401 | The token is missing, expired (Invalid or expired token) or revoked (Token has been revoked). Log in again and reload it. |
| 403 | Your role in the organization does not allow it: You are not allowed to perform this action. Permission errors never carry a code. |
| 403 | Plan limit: the free plan includes 1 notification channel (The free plan includes 1 notification channel. Add a subscription to this organization to create more.). The body carries "code": "QUOTA_EXCEEDED" and "quota": "notifications". |
| 500 | A Organization ID (org_id), Name (name), Type (type), Target (target) and Comments (comments) was expected in the Payload, A Token was expected in the Payload (Slack without token), or Error: Resource not added. |
| 501 | The organization requires MFA for create actions and your user has none: MFA needed. Enable MFA in your account page first. |
| 503 | BILLING_UNAVAILABLE in code: the subscription or the channel count could not be verified (We could not verify your subscription. Try again in a moment.). Retry. |
Update notification
POST /v1/organizations/notifications/update?action=edit_notification
Updates a notification channel; send only what changes, plus the reason of the change. A new target (or type) is validated with the same rules as in Create notification. Only an owner or admin can update channels.
Who can call it: owner or admin (planners can create channels but not update them). MFA policy action: update. If the organization requires MFA for it and your user has none, the call is refused with 501 MFA needed.
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <access token> |
Example
curl -X POST 'https://console.cloudplans.io/v1/organizations/notifications/update?action=edit_notification' \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"org_id": "org-k3m9q2x7d1a5z8w4",
"notification_id": "noti-3b7d9f10c4e2a158",
"reason": "New ops mailbox",
"target": "ops-team@example.com"
}'
Query string
| Name | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Fixed value edit_notification |
Body
| Name | Type | Required | Description |
|---|---|---|---|
| org_id | string | Yes | The Organization ID |
| notification_id | string | Yes | The notification ID |
| reason | string | Yes | Why it changes. The key must be present; it is stored in the audit history. |
| name | string | No | Up to 200 characters |
| comments | string | No | Up to 2000 characters |
| type | string | No | email, slack or teams |
| target | string | No | Validated against the resulting type. Required when type changes to email or teams. |
| token | string | No | 8 to 512 characters. Required (with target) when type changes to slack; "" keeps the current token. |
Response
{
"status": 200,
"response": "Notification updated"
}
Errors
Every error is a JSON body {"status": <code>, "response": "<message>"} (see Common conventions).
| HTTP | When |
|---|---|
| 400 | A target, Invalid token, Invalid name or Invalid comments error. |
| 400 | Invalid JSON payload: the body is missing, is not valid JSON or is not a JSON object. |
| 400 | Action query string parameter is required (no action) or Unknown action. |
| 401 | The token is missing, expired (Invalid or expired token) or revoked (Token has been revoked). Log in again and reload it. |
| 403 | Your role in the organization does not allow it: You are not allowed to perform this action. Permission errors never carry a code. |
| 500 | Missing keys (A Organization ID (org_id), Notification ID (notification_id) and Reason (reason) were expected in the Payload ...); A Token and Target were expected in the Payload when the Notification type is Slack; A Target was expected in the Payload when the Notification type is Email or Teams; Error updating notification (also when nothing changes); or Internal error (also for an unknown notification_id: there is no 404). |
| 501 | The organization requires MFA for update actions and your user has none: MFA needed. Enable MFA in your account page first. |
Remove notification
POST /v1/organizations/notifications/remove?action=remove_notification
Deletes a notification channel. Removing one that does not exist also answers 200. Only an owner or admin can remove channels.
Who can call it: owner or admin (planners can create channels but not remove them). MFA policy action: delete. If the organization requires MFA for it and your user has none, the call is refused with 501 MFA needed.
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <access token> |
Example
curl -X POST 'https://console.cloudplans.io/v1/organizations/notifications/remove?action=remove_notification' \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"org_id": "org-k3m9q2x7d1a5z8w4",
"notification_id": "noti-3b7d9f10c4e2a158"
}'
Query string
| Name | Type | Required | Description |
|---|---|---|---|
| action | string | Yes | Fixed value remove_notification |
Body
| Name | Type | Required | Description |
|---|---|---|---|
| org_id | string | Yes | The Organization ID |
| notification_id | string | Yes | The notification ID |
Response
{
"status": 200,
"response": "Notification noti-3b7d9f10c4e2a158 deleted"
}
Errors
Every error is a JSON body {"status": <code>, "response": "<message>"} (see Common conventions).
| HTTP | When |
|---|---|
| 400 | Action query string parameter is required (no action) or Unknown action. |
| 401 | The token is missing, expired (Invalid or expired token) or revoked (Token has been revoked). Log in again and reload it. |
| 403 | Your role in the organization does not allow it: You are not allowed to perform this action. Permission errors never carry a code. |
| 500 | <org_id> and <notification_id> were expected (also for an invalid body), Notification not deleted or Internal error (these two without a status key). |
| 501 | The organization requires MFA for delete actions and your user has none: MFA needed. Enable MFA in your account page first. |