Syndai Docs

Phone line

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

GET
/api/v1/coding/repos/{repository_id}/phone-line

The site's phone line: on or off, its number, and this month's calls and spend against the cap. Any member reads it.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

repository_id*string
Formatuuid

Response Body

Request fulfilled, document follows

application/json
  1. response
calls_this_month*integer
capped_until?string|null
disclosed*boolean
e164?string|null
monthly_cap_usd*number
spent_usd*number
state*string|
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/phone-line'
Example Response
{  "calls_this_month": 0,  "capped_until": "string",  "disclosed": true,  "e164": "string",  "monthly_cap_usd": 0,  "spent_usd": 0,  "state": "off"}
Was this page helpful?