Skip to main content
POST
/
rooms
/
{room_id}
/
pages
/
create_many
Create Pages For Room
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": [
      {
        "type": "Image",
        "src": "https://picsum.photos/id/237/536/354",
        "fixed": true
      }
    ],
    "size": {
      "width": 4000,
      "height": 3000
    },
    "index": 123
  }
]'
{
  "pages": [
    {
      "id": "000585f36eed9e8fb6b655b4",
      "entities": [
        {
          "type": "Image",
          "src": "https://picsum.photos/id/237/536/354"
        }
      ]
    },
    {
      "id": "000585f36eed9e8fb6b655b5",
      "entities": [
        {
          "type": "Image",
          "src": "https://picsum.photos/id/237/536/354"
        },
        {
          "type": "Image",
          "src": "https://picsum.photos/id/237/536/354"
        }
      ]
    }
  ]
}
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
header
required

Path Parameters

room_id
string
required

Body

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

Response

pages
object[]
Example: