Senders

Limits and status of a channel

PATCH
/v1/senders/{id}/channels/{channel}

Authorization

projectKey
headerAuthorizationBearer <token>

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

Path Parameters

id*string
channel*string
Value in"email""sms"

Request Body

application/json
  1. body
daily_limit?|null
weekly_limit?|null
min_gap_seconds?integer
Range0 <= value <= 86400
opted_in?boolean
status?string
Value in"active""paused"

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X PATCH 'http://localhost:8080/v1/senders/string/channels/email' \  -H 'Content-Type: application/json' \  -d '{}'
{  "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"  }}