Channel address
A channel reaches the outside through its addresses: an INBOUND address is where messages arrive, an OUTBOUND address is where they are sent from. A channel holds at most one of each.
An outbound address may only be used once the tenant has proven that it owns it.
Gives a channel an address. direction is INBOUND for the address messages arrive at and OUTBOUND for the one they are sent from; type is EMAIL, PHONE, TOKEN or URL, and value is the address itself.
An outbound address that is not a URL may only be used once the tenant has proven that it owns it: without a verified claim on that address the request is answered with 403. Inbound addresses carry no such requirement.
A channel holds at most one identity per direction — adding a second one for the same direction replaces it. The answer is the channel, so the caller sees the result in one step.
Token issued by the central equipme authentication, sent as Bearer <token>.
Channel id
3OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /api/v1/channels/{channelId}/identities HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2
{}{
"data": {
"active": true,
"createdAt": "text",
"id": 1,
"kind": "",
"name": "text",
"purpose": "",
"tenant": {
"id": 1,
"name": "text"
},
"tenantId": 1,
"updatedAt": "text"
}
}Takes an address away from a channel. The direction in the path says which one — INBOUND or OUTBOUND. The answer is the channel without that identity.
A channel without an inbound identity receives nothing; without an outbound one it cannot send.
Token issued by the central equipme authentication, sent as Bearer <token>.
Channel id
3INBOUND or OUTBOUND
OUTBOUNDOK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
DELETE /api/v1/channels/{channelId}/identities/{direction} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"active": true,
"createdAt": "text",
"id": 1,
"kind": "",
"name": "text",
"purpose": "",
"tenant": {
"id": 1,
"name": "text"
},
"tenantId": 1,
"updatedAt": "text"
}
}Last updated
Was this helpful?