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": [
      {
        "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

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[]
size
object

Size of a page

index
integer

Response

200
application/json
Successful operation
pages
object[]

Created pages

Example:
[
  {
    "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"
      }
    ]
  }
]