Scute records each SMS and email a challenge sends, with the provider's delivery reports. Read them per challenge, or as a report over a period for the app.
Get a challenge's delivery#
The delivery timeline, the carrier reports for each SMS and the provider reports for each email of one challenge.
GET
/v1/auth/:app_id/challenges/:token/deliveryApp key or M2M tokenapp_idstringrequired
Path. The app that owns the challenge. For a workspace challenge, the verification app (the challenge's app_id).
tokenstringrequired
Path. The challenge token (ch_...).
Requestbash
curl https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges/ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E/delivery \ -H "Authorization: Bearer $SCUTE_APP_SECRET"Response 200json
{ "challenge_id": "0193f901-7c1d-7b3b-9a10-2f6f1c0d3b7c", "recipient": "+14155551234", "phone_info": { "carrier": "T-Mobile USA, Inc.", "line_type": "mobile", "country": "US" }, "timeline": [ { "event": "challenge.created", "at": "2026-11-19T14:00:00Z", "details": { "purpose": "verify_identity", "method": "sms_otp" } }, { "event": "sms.queued", "at": "2026-11-19T14:00:00Z", "details": { "channel": "sms", "recipient": "+14155551234" }, "provider_message_id": "SM8f2c..." }, { "event": "sms.sent", "at": "2026-11-19T14:00:01Z", "provider": "twilio", "provider_message_id": "SM8f2c..." }, { "event": "sms.delivered", "at": "2026-11-19T14:00:04Z", "provider_message_id": "SM8f2c..." }, { "event": "challenge.verified", "at": "2026-11-19T14:01:10Z" } ], "delivery_reports": [ { "id": "0193f902-0000-7000-8000-000000000001", "status": "delivered", "carrier": "T-Mobile USA, Inc.", "line_type": "mobile", "country_code": "US", "error_code": null, "error_message": null, "price": 0.0079, "price_unit": "USD", "provider_message_id": "SM8f2c...", "provider_timestamp": "2026-11-19T14:00:04Z", "created_at": "2026-11-19T14:00:01Z" } ], "email_delivery_reports": [], "completed_via": "verify", "initiator": { "type": "api_key", "id": "20", "label": "helpdesk-server" }}| Field | Description |
|---|---|
| recipient | Where the code or link went. |
| timeline | Events in time order: challenge.created, then per message sms.queued or email.queued, .sent, .delivered, .failed, then challenge.verified and challenge.completed. A .failed event carries error_message. |
| delivery_reports | One per SMS, as the carrier reported it. price is what the provider charged, null until known. |
| email_delivery_reports | One per email: id, status, kind, to_email, mailbox_provider, bounce_type, bounce_class, error_message, inactive, provider_message_id, delivered_at, bounced_at, complained_at, first_opened_at, created_at. |
| completed_via | How the challenge was completed (for example verify for its own code, link for its link). null while not completed. |
| initiator | Who started the challenge: type, id, and a label (the key's nickname, the M2M client's name or the member's name) when Scute can resolve it. |
Errors are those of App challenges.
SMS delivery report#
Message counts, delivery rate and provider cost for the app's SMS over a period, with breakdowns by status, country, carrier and line type. One report row is one message.
GET
/v1/verify/:app_id/delivery_analyticsApp keyapp_idstringrequired
Path. app_... ID or UUID.
daysinteger
Query. The last N UTC days, today included. Default 30, between 1 and 3650.
start_datestring
Query. Start of the period. Used only together with end_date, and then days is ignored.
end_datestring
Query. End of the period.
Requestbash
curl "https://api.scute.io/v1/verify/$SCUTE_APP_ID/delivery_analytics?days=7" \ -H "Authorization: Bearer $SCUTE_APP_SECRET"Response 200json
{ "period": { "start": "2026-11-13T08:12:00Z", "end": "2026-11-19T13:40:00Z" }, "summary": { "total": 412, "delivered": 398, "failed": 9, "pending": 5, "delivery_rate": 96.6 }, "cost": { "total": 3.2548, "average_per_message": 0.0079, "currency": "USD", "priced": 412 }, "by_status": { "delivered": 398, "undelivered": 6, "failed": 3, "sent": 5 }, "by_country": [ { "country_code": "US", "total": 380, "delivered": 371, "failed": 6, "delivery_rate": 97.63, "cost": 3.002, "priced": 380 } ], "by_carrier": { "T-Mobile USA, Inc.": 160 }, "by_line_type": { "mobile": 401, "voip": 11 }, "cost_by_carrier": { "T-Mobile USA, Inc.": { "cost": 1.264, "priced": 160 } }, "cost_by_line_type": { "mobile": { "cost": 3.1679, "priced": 401 } }, "days": [ { "date": "2026-11-13", "delivered": 52, "failed": 1 } ]}- failed counts failed and undelivered. pending counts every message not in a final status yet (final: delivered, undelivered, failed, canceled, read).
- delivery_rate is delivered over total, in percent.
- Cost sums and the average cover only messages with a stored price; priced says how many.
- days has one row per UTC day of the period, oldest first, with zero rows for days without messages. A period longer than 366 days lists only the days with messages.
| Status | When |
|---|---|
| 400 | start_date or end_date is not a date (Invalid date format: ...). |
| 403 | The key does not own this app. |
| 404 | App not found. |
Email delivery report#
The same report for the app's email, from the mail provider's delivery, bounce, spam complaint and open reports.
GET
/v1/verify/:app_id/email_delivery_analyticsApp keydaysinteger
Query. Default 30, between 1 and 3650.
start_datestring
Query. Used only together with end_date.
end_datestring
Query. End of the period.
Requestbash
curl "https://api.scute.io/v1/verify/$SCUTE_APP_ID/email_delivery_analytics?days=30" \ -H "Authorization: Bearer $SCUTE_APP_SECRET"Response 200json
{ "period": { "start": "2026-10-21T09:00:00Z", "end": "2026-11-19T13:40:00Z" }, "summary": { "total": 1200, "delivered": 1170, "bounced": 22, "complained": 2, "pending": 6, "delivery_rate": 97.67, "bounce_rate": 1.83, "complaint_rate": 0.17, "opened": 830, "open_rate": 70.82 }, "tracking": { "opens": true }, "by_status": { "delivered": 1170, "bounced": 22, "complained": 2, "sent": 6 }, "by_kind": { "otp": 640, "magic_link": 460, "notification": 100 }, "bounces": { "hard": 15, "soft": 7 }, "by_provider": [ { "provider": "Gmail", "total": 700, "delivered": 690, "bounced": 9, "complained": 1, "delivery_rate": 98.71 } ], "by_domain": [ { "domain": "acme.com", "total": 210, "delivered": 205, "bounced": 5, "complained": 0, "delivery_rate": 97.62 } ], "recent_bounces": [], "days": [ { "date": "2026-10-21", "delivered": 40, "bounced": 1, "complained": 0 } ]}- A spam complaint means the email arrived, so delivery_rate counts delivered plus complained. open_rate is opened over that same number.
- tracking.opens says whether opens are counted.
- by_kind counts email by kind, such as otp, magic_link and notification (other when untagged).
- by_domain holds the 20 domains with the most email. recent_bounces holds the last 20 bounces and complaints, in the shape of email_delivery_reports above.
- days follows the same rules as the SMS report.
Errors are those of the SMS report.