POST
/
rooms
/
{room_id}
/
pages
/
create_many
curl --request POST \
  --url https://api.pagecall.com/v1/rooms/{room_id}/pages/create_many \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "entities": [
      {
        "fixed": true,
        "src": "https://picsum.photos/id/237/536/354",
        "type": "Image"
      }
    ],
    "index": 123,
    "size": {
      "height": 123,
      "width": 123
    }
  }
]'
{
  "pages": [
    {
      "entities": [
        {
          "src": "https://picsum.photos/id/237/536/354",
          "type": "Image"
        }
      ],
      "id": "000585f36eed9e8fb6b655b4"
    },
    {
      "entities": [
        {
          "src": "https://picsum.photos/id/237/536/354",
          "type": "Image"
        },
        {
          "src": "https://picsum.photos/id/237/536/354",
          "type": "Image"
        }
      ],
      "id": "000585f36eed9e8fb6b655b5"
    }
  ]
}

Currently, You cannot try this API on the docs.

Request Body Example

[
  {
    "entities": [
      {
        "type": "Image",
        "src": "https://picsum.photos/id/237/367/267"
      }
    ]
  },
  {
    "entities": [
      {
        "type": "Image",
        "src": "https://picsum.photos/id/582/367/267"
      }
    ]
  }
]

This will create two pages, each containing a picture of a dog and a fox respectively.

URL Encoding Requirement

Notice: Always encode URLs when using Pagecall’s APIs. Unencoded URLs may lead to errors, for which Pagecall is not liable.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

room_id
string
required

room id

Body

application/json · object[]
entities
object[]
index
integer
size
object

Size of a page

Response

200 - application/json
pages
object[]

Created pages