Senders

The sender's Allo number and user

PUT
/v1/senders/{id}/channels/sms

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Path Parameters

id*string
Length1 <= length <= 128

Request Body

application/json
  1. body
allo_user_id*string

The Allo user id (usr-…), not the email; from GET /v1/project/providers/allo/users.

Length1 <= length
number*string

E.164; one the Allo key can see and that can send SMS.

Length5 <= length

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X PUT 'http://localhost:8080/v1/senders/string/channels/sms' \  -H 'Content-Type: application/json' \  -d '{  "allo_user_id": "string",  "number": "string"}'
{  "success": true,  "data": {    "id": "string",    "senderId": "string",    "projectId": "string",    "connectionId": "string",    "channel": "string",    "address": "string",    "status": "string",    "dailyLimit": -9007199254740991,    "weeklyLimit": -9007199254740991,    "minGapSeconds": -9007199254740991,    "optedInAt": "2019-08-24T14:15:22Z",    "config": {      "property1": null,      "property2": null    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "meta": {    "request_id": "string"  }}