Preflight
GET
/api/v1/ext/dbr-campaigns/preflight
Is the workspace ready for a campaign?
Auth: Bearer access_token
Scope: dbr_campaigns.read
A campaign needs the account's AI key, a reply model, and a device that can send. ok is true when all three are there; otherwise message says what is missing.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | query | number | yes | A workspace of the installer. |
Responses
| Status | When |
|---|---|
200 | OK |
401 | Missing or invalid token |
403 | Missing scope |
404 | workspace_id does not exist or is not the installer's (same response for both) |
502 | The campaign service could not be reached |
RequestResponses
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/dbr-campaigns/preflight" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"data": {
"ok": true,
"has_key": true,
"agent_model_configured": true,
"message": "Ready to build a reactivation campaign.",
"device": {
"ok": true,
"devices": 2,
"enabled": 2,
"online": 1
}
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Query parameters
A workspace of the installer.
Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/dbr-campaigns/preflight
Previous
« Delete AI agent
Next
List campaigns »
