API conventions

Consistent patterns used across all RCS Studio API endpoints.

Base URL

https://api.rcsstudio.ai

All endpoint paths are relative to this base URL.


Authentication

Every request requires an authentication header:

Authorization: Bearer <access_token>

See Authentication for how to obtain a token.

# Only updates defaultState — all other agent config fields are untouched
curl -X PATCH https://api.rcsstudio.ai/agents/ag_abc123 \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"config": {"defaultState": "welcome"}}'

Phone numbers — E.164 format

All phone number fields use E.164 format: a + followed by the country code and number, no spaces or dashes.

ValidInvalid
+155512345675551234567
+442071234567(555) 123-4567

Dates and timestamps — ISO 8601

All date and datetime fields use ISO 8601 format.

TypeFormatExample
DateYYYY-MM-DD2026-04-28
DatetimeYYYY-MM-DDTHH:mm:ssZ`2026-04-28T14:30:00Z


See also