Delivery

Channel

Channel Structure

Field

id

uuid

hash

author

name

string

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

Field
Type

id

uuid

hash

author

channel

uuid

content

string

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

Field
Type

channel

post

content

string

Message

Message Structure

Field
Type

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

Create Message

TYPE 768

Input

Field
Type

id

uuid (only v7)

channel

content

string

Last updated

Was this helpful?