Delivery
Channel
Channel Structure
Get Channel
GET
/delivery/v1/channel/{channel.id}
Response
{
"id": "00000000-0000-0000-0000-000000000000",
"hash": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"author": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"name": "Захоплення Світу"
}
Create Channel
TYPE
3
Input
Field
Type
name
string
Update Channel
TYPE
4
Input
Field
Type
channel
name
string
Post
Post Structure
Get Posts
GET
/delivery/v1/channel/{channel.id}/posts
Response
[
{
"id": "00000000-0000-0000-0000-000000000000",
"hash": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"author": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"channel": "00000000-0000-0000-0000-000000000000",
"content": "Монада — це моноїд в категорії якогось там..."
}
]
Get Post
GET
/delivery/v1/channel/{channel.id}/posts/{post.id}
Response
{
"id": "00000000-0000-0000-0000-000000000000",
"hash": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"author": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"channel": "00000000-0000-0000-0000-000000000000",
"content": "Ніколи такого не було — і ось знову..."
}
Create Post
TYPE
5
Input
Field
Type
channel
content
string
Update Post
TYPE
6
Input
Message
Message Structure
Field
Type
body
auth
Get Messages
GET
/delivery/v1/channel/{channel.id}/messages
Response
[
{
"body": "base64-url-no-padding",
"auth": {
"sch": 0,
"pub": "base64",
"sig": "base64"
}
}
]
Get Message
GET
/delivery/v1/channel/{channel.id}/messages/{message.id}
Response
{
"body": "base64-url-no-padding",
"auth": {
"sch": 0,
"pub": "base64",
"sig": "base64"
}
}
Send Message
POST
/delivery/v1/channel/send
Headers
Name
Value
Content-Type
application/json
Body
Name
Type
body
auth
Create Message
TYPE
768
Input
Field
Type
Last updated
Was this helpful?