Documents

Place an image on a whiteboard

POST
/documents/{document_id}/whiteboard/images

Place an image on a whiteboard. Pass source_url (a public http/https image, fetched in the background, max 10 MB) or image_document_id (an image already in the whiteboard's Space; one outside the folder from documents.whiteboard_files_folder is copied into it). PNG, JPEG, GIF, WebP, AVIF and HEIC are accepted; HEIC is converted to WebP. The element appears at once with status loading and turns ready (with document_id) or failed (with an error code). With element_id the image goes into that instagram element instead (a post's image is replaced).

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

document_id*string

Resource identifier: document_id.

Formatuuid

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128
Idempotency-Key?string

A unique key for this intended write; the body field idempotency_key is accepted instead. One of the two is required. Reuse it only for an identical retry.

Length1 <= length <= 200

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/documents/123e4567-e89b-42d3-a456-426614174000/whiteboard/images" \  -H "Idempotency-Key: 123e4567-e89b-42d3-a456-426614174000" \  -H "Content-Type: application/json" \  -d '{}'
{  "document_id": "123e4567-e89b-42d3-a456-426614174000",  "element_id": "example"}