{
    "info": {
        "name": "1Confirmed API v2",
        "description": "Generated from the 1Confirmed API reference at https://1confirmed.com/developers/api?version=v2. Send Accept: application/json, and your access token as a Bearer token on every protected request.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{access_token}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://1confirmed.com/api/v2"
        },
        {
            "key": "access_token",
            "value": ""
        },
        {
            "key": "registration_token",
            "value": ""
        }
    ],
    "item": [
        {
            "name": "Authentication",
            "item": [
                {
                    "name": "Login",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/login",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "login"
                            ]
                        },
                        "description": "Get an access token for an existing account.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"email\": \"you@example.com\",\n    \"password\": \"YOUR_PASSWORD\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "auth": {
                            "type": "noauth"
                        }
                    }
                },
                {
                    "name": "Register",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/register",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "register"
                            ]
                        },
                        "description": "Create an account using your premium account API token, or a registration token issued by an administrator.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Sam Smith\",\n    \"email\": \"sam@example.com\",\n    \"phone\": \"212600000000\",\n    \"country_code\": \"MA\",\n    \"password\": \"CHANGEme123!\",\n    \"c_password\": \"CHANGEme123!\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "auth": {
                            "type": "bearer",
                            "bearer": [
                                {
                                    "key": "token",
                                    "value": "{{registration_token}}",
                                    "type": "string"
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "User info",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/user",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "user"
                            ]
                        },
                        "description": "Read the authenticated account."
                    }
                }
            ]
        },
        {
            "name": "Resources",
            "item": [
                {
                    "name": "Categories",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/categories",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "categories"
                            ]
                        },
                        "description": "List template categories."
                    }
                },
                {
                    "name": "Templates",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/templates?language_id=1&is_broadcast=0",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "templates"
                            ],
                            "query": [
                                {
                                    "key": "language_id",
                                    "value": "1"
                                },
                                {
                                    "key": "is_broadcast",
                                    "value": "0"
                                }
                            ]
                        },
                        "description": "Find templates and their variable definitions."
                    }
                },
                {
                    "name": "Template accounts",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/template/accounts?template_id=018f16b6-7696-4ae8-8cf0-000000000042",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "template",
                                "accounts"
                            ],
                            "query": [
                                {
                                    "key": "template_id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000042"
                                }
                            ]
                        },
                        "description": "Get sender choices for a selected template."
                    }
                },
                {
                    "name": "Languages",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/languages",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "languages"
                            ]
                        },
                        "description": "List the language IDs used in requests."
                    }
                },
                {
                    "name": "Credits",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/credits",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "credits"
                            ]
                        },
                        "description": "Read the account credit record."
                    }
                }
            ]
        },
        {
            "name": "Messaging",
            "item": [
                {
                    "name": "Send message",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/messages",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "messages"
                            ]
                        },
                        "description": "Send one template message or schedule it for later.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Order update\",\n    \"template_id\": \"018f16b6-7696-4ae8-8cf0-000000000042\",\n    \"template_account_flow_id\": \"018f16b6-7696-4ae8-8cf0-000000000073\",\n    \"phone\": \"212600000000\",\n    \"data\": {\n        \"customer_name\": \"Sam\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Broadcasts",
            "item": [
                {
                    "name": "Send broadcast",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/send-broadcast",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "send-broadcast"
                            ]
                        },
                        "description": "Create and queue a broadcast in one request.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Order updates\",\n    \"language_id\": 1,\n    \"template_id\": \"018f16b6-7696-4ae8-8cf0-000000000042\",\n    \"template_account_flow_id\": \"018f16b6-7696-4ae8-8cf0-000000000073\",\n    \"data\": \"{\\\"data\\\":[{\\\"phone\\\":\\\"212600000000\\\",\\\"customer_name\\\":\\\"Sam\\\"}]}\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Create draft",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcasts",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcasts"
                            ]
                        },
                        "description": "Create a draft record. This request does not send messages.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"My broadcast\",\n    \"language_id\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Broadcast list",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcasts",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcasts"
                            ]
                        },
                        "description": "Search your broadcasts by name or template name. Returns 15 records per page."
                    }
                },
                {
                    "name": "Broadcast details",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcasts/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcasts",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Read a broadcast belonging to your account."
                    }
                },
                {
                    "name": "Update draft",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcasts/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcasts",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Update the name, language, AI Flow or listener on a draft. PATCH is also supported.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Updated broadcast\",\n    \"language_id\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Contacts",
            "item": [
                {
                    "name": "Broadcast contacts",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/contacts?broadcast_id=018f16b6-7696-4ae8-8cf0-000000000123",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "contacts"
                            ],
                            "query": [
                                {
                                    "key": "broadcast_id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "List contacts in one of your broadcasts, 15 per page."
                    }
                },
                {
                    "name": "Filter contacts",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/filter/contacts/segments?broadcast_id=018f16b6-7696-4ae8-8cf0-000000000123",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "filter",
                                "contacts",
                                "segments"
                            ],
                            "query": [
                                {
                                    "key": "broadcast_id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Search contacts in your broadcasts, 20 per page."
                    }
                },
                {
                    "name": "Blacklist",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/black-list",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "black-list"
                            ]
                        },
                        "description": "Read opt-outs associated with your broadcasts, account memberships or manual blocks. Search phone or broadcast name; 10 per page."
                    }
                },
                {
                    "name": "Add to blacklist",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/black-list",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "black-list"
                            ]
                        },
                        "description": "Create a manual account-specific block.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"phone\": \"212600000000\",\n    \"cr_account_id\": \"018f16b6-7696-4ae8-8cf0-000000000052\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Confirmations",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/confirmations",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "confirmations"
                            ]
                        },
                        "description": "List paid, confirmed contacts in your broadcasts. Search phone or broadcast name; 15 per page."
                    }
                },
                {
                    "name": "Confirmation listener",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/confirmation/listeners",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "confirmation",
                                "listeners"
                            ]
                        },
                        "description": "Read your account-level confirmation listener."
                    }
                },
                {
                    "name": "Save confirmation listener",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/confirmation/listeners",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "confirmation",
                                "listeners"
                            ]
                        },
                        "description": "Create or update the listener for your account.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"target_url\": \"https://example.com/confirmations\",\n    \"active\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Account",
            "item": [
                {
                    "name": "Payments",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payments",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payments"
                            ]
                        },
                        "description": "List your payments, newest first, 10 per page."
                    }
                },
                {
                    "name": "Create payment",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/payments",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "payments"
                            ]
                        },
                        "description": "Create a checkout session for a credit purchase.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"credit\": 100,\n    \"method\": \"Stripe\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Connections",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/connections",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "connections"
                            ]
                        },
                        "description": "Read your login history, newest first, 10 per page."
                    }
                }
            ]
        },
        {
            "name": "Saved lists",
            "item": [
                {
                    "name": "Saved lists",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/saved-list",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "saved-list"
                            ]
                        },
                        "description": "Read lists you own and lists shared with you."
                    }
                },
                {
                    "name": "Create saved list",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/saved-list",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "saved-list"
                            ]
                        },
                        "description": "Store recipient data for later use.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Customers\",\n    \"json_data\": \"{\\\"data\\\":[{\\\"phone\\\":\\\"212600000000\\\"}]}\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Saved list details",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/saved-list/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "saved-list",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Read an owned or shared list, including json_data and is_shared."
                    }
                },
                {
                    "name": "Update saved list",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/saved-list/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "saved-list",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Update a list you own. PATCH is also supported.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Updated customers\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Clone saved list",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/saved-list/:id/clone",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "saved-list",
                                ":id",
                                "clone"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Copy an owned or shared list into your account."
                    }
                },
                {
                    "name": "Share saved list",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/saved-lists/:id/share",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "saved-lists",
                                ":id",
                                "share"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Share a list you own with an existing user. This sends that user an email.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"email\": \"colleague@example.com\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Delete saved list",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/saved-list/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "saved-list",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Delete a list you own."
                    }
                }
            ]
        },
        {
            "name": "SMS",
            "item": [
                {
                    "name": "Send SMS",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/sms/send",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sms",
                                "send"
                            ]
                        },
                        "description": "Send an SMS using your account credit. SMS is available once your account has bought credits at least once, or on a premium account; free credits cover WhatsApp only.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"phone\": \"212600000000\",\n    \"text\": \"Your order is ready.\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "SMS history",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/sms",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sms"
                            ]
                        },
                        "description": "List your SMS messages, newest first."
                    }
                },
                {
                    "name": "SMS details",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/sms/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sms",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Read one of your SMS messages."
                    }
                },
                {
                    "name": "SMS cost",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/sms/cost",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "sms",
                                "cost"
                            ]
                        },
                        "description": "Read your current per-message SMS credit cost."
                    }
                }
            ]
        },
        {
            "name": "Broadcast wizard",
            "item": [
                {
                    "name": "Choose template",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcast/template",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcast",
                                "template"
                            ]
                        },
                        "description": "After Create draft, attach the template.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"broadcast_id\": \"018f16b6-7696-4ae8-8cf0-000000000123\",\n    \"template_id\": \"018f16b6-7696-4ae8-8cf0-000000000042\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Upload source file",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcast/file",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcast",
                                "file"
                            ]
                        },
                        "description": "Attach a recipient source file to a draft. Existing attached media is replaced."
                    }
                },
                {
                    "name": "Map recipients",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcast/mapping",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcast",
                                "mapping"
                            ]
                        },
                        "description": "Supply recipients and template values after choosing the template.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"broadcast_id\": \"018f16b6-7696-4ae8-8cf0-000000000123\",\n    \"data\": \"{\\\"data\\\":[{\\\"phone\\\":\\\"212600000000\\\",\\\"customer_name\\\":\\\"Sam\\\"}]}\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Choose sender",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcast/country",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcast",
                                "country"
                            ]
                        },
                        "description": "Set the sending account flow for the draft.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"broadcast_id\": \"018f16b6-7696-4ae8-8cf0-000000000123\",\n    \"template_account_flow_id\": \"018f16b6-7696-4ae8-8cf0-000000000073\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Send draft",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcast/send",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcast",
                                "send"
                            ]
                        },
                        "description": "Queue a prepared draft after template, mapping and sender steps.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"broadcast_id\": \"018f16b6-7696-4ae8-8cf0-000000000123\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Broadcast actions",
            "item": [
                {
                    "name": "Download source file",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcast/:id/download",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcast",
                                ":id",
                                "download"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Download the source file attached to your broadcast."
                    }
                },
                {
                    "name": "Stop queued broadcast",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcast/:id/stop",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcast",
                                ":id",
                                "stop"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Stop remaining queued work for your broadcast."
                    }
                },
                {
                    "name": "Scheduled jobs",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcast/:id/scheduled-jobs",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcast",
                                ":id",
                                "scheduled-jobs"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Inspect the schedule state of your broadcast."
                    }
                },
                {
                    "name": "Cancel scheduled broadcast",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/broadcast/:id/cancel-schedule",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "broadcast",
                                ":id",
                                "cancel-schedule"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Cancel remaining scheduled work. Already cancelled or already processed broadcasts can return 400."
                    }
                }
            ]
        },
        {
            "name": "Calendars",
            "item": [
                {
                    "name": "Calendars",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/calendars",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "calendars"
                            ]
                        },
                        "description": "Read your calendars."
                    }
                },
                {
                    "name": "Create calendar",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/calendars",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "calendars"
                            ]
                        },
                        "description": "Create a calendar for appointment templates.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Appointments\",\n    \"date_start\": \"2026-11-27\",\n    \"date_end\": \"2026-12-26\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Calendar details",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/calendars/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "calendars",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Read an owned calendar with its schedule tree."
                    }
                },
                {
                    "name": "Update calendar",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/calendars/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "calendars",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Update fields on a calendar you own. PATCH is also supported.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Updated appointments\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Delete calendar",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/calendars/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "calendars",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Delete a calendar you own."
                    }
                }
            ]
        },
        {
            "name": "Calendar schedules",
            "item": [
                {
                    "name": "City list",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/calendars/:id/cities",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "calendars",
                                ":id",
                                "cities"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "List records in a parent calendar you own."
                    }
                },
                {
                    "name": "Create city",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/cities",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "cities"
                            ]
                        },
                        "description": "Add a record to an owned calendar.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"calendar_id\": \"018f16b6-7696-4ae8-8cf0-000000000123\",\n    \"city_name\": \"Casablanca\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "City details",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/cities/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "cities",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Read a record in your calendar."
                    }
                },
                {
                    "name": "Update city",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/cities/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "cities",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Update this record. PATCH is also supported. Its parent cannot be changed here.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"city_name\": \"Casablanca\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Delete city",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/cities/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "cities",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Delete a record in your calendar."
                    }
                },
                {
                    "name": "Weekday schedule list",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/cities/:id/weekday-schedules",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "cities",
                                ":id",
                                "weekday-schedules"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "List records in a parent calendar you own."
                    }
                },
                {
                    "name": "Create weekday schedule",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/weekday-schedules",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "weekday-schedules"
                            ]
                        },
                        "description": "Add a record to an owned calendar.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"city_id\": \"018f16b6-7696-4ae8-8cf0-000000000123\",\n    \"day_of_week\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Weekday schedule details",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/weekday-schedules/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "weekday-schedules",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Read a record in your calendar."
                    }
                },
                {
                    "name": "Update weekday schedule",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/weekday-schedules/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "weekday-schedules",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Update this record. PATCH is also supported. Its parent cannot be changed here.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"day_of_week\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Delete weekday schedule",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/weekday-schedules/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "weekday-schedules",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Delete a record in your calendar."
                    }
                },
                {
                    "name": "Time range list",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/weekday-schedules/:id/time-ranges",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "weekday-schedules",
                                ":id",
                                "time-ranges"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "List records in a parent calendar you own."
                    }
                },
                {
                    "name": "Create time range",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/time-ranges",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "time-ranges"
                            ]
                        },
                        "description": "Add a record to an owned calendar.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"weekday_schedule_id\": \"018f16b6-7696-4ae8-8cf0-000000000123\",\n    \"start_time\": \"09:00\",\n    \"end_time\": \"17:00\",\n    \"duration_minutes\": 30,\n    \"capacity\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Time range details",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/time-ranges/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "time-ranges",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Read a record in your calendar."
                    }
                },
                {
                    "name": "Update time range",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/time-ranges/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "time-ranges",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Update this record. PATCH is also supported. Its parent cannot be changed here.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"start_time\": \"09:00\",\n    \"end_time\": \"17:00\",\n    \"duration_minutes\": 30,\n    \"capacity\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Delete time range",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/time-ranges/:id",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "time-ranges",
                                ":id"
                            ],
                            "variable": [
                                {
                                    "key": "id",
                                    "value": "018f16b6-7696-4ae8-8cf0-000000000123"
                                }
                            ]
                        },
                        "description": "Delete a record in your calendar."
                    }
                }
            ]
        }
    ]
}