HydraCore
API by router

Sms channel

Sms Status

GET
/v1/instances/{instance_id}/channels/sms

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

instance_id*Instance Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

application/json
  1. response
enabled*Enabled
phone_number?string|null
status*Status
webhook_url*Webhook Url
Example Request
curl -X GET 'https://example.com/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/channels/sms'
Example Response
{  "enabled": true,  "phone_number": "string",  "status": "string",  "webhook_url": "string"}

Setup Sms

POST
/v1/instances/{instance_id}/channels/sms

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

instance_id*Instance Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Request Body

application/json
  1. body
account_sid*Account Sid

Twilio Account SID

auth_token*Auth Token

Twilio Auth Token (stored encrypted)

phone_number*Phone Number

Twilio phone number (E.164 format, e.g. +61400111222)

Lengthlength <= 30

Response Body

Successful Response

application/json
  1. response
enabled*Enabled
phone_number?string|null
status*Status
webhook_url*Webhook Url
Example Request
curl -X POST 'https://example.com/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/channels/sms' \  -H 'Content-Type: application/json' \  -d '{  "account_sid": "string",  "auth_token": "string",  "phone_number": "string"}'
Example Response
{  "enabled": true,  "phone_number": "string",  "status": "string",  "webhook_url": "string"}

Teardown Sms

DELETE
/v1/instances/{instance_id}/channels/sms

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

instance_id*Instance Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

Example Request
curl -X DELETE 'https://example.com/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/channels/sms'
Example Response
Empty