EaserixDocs
DevelopersAPI referenceNotesSharing

Which workspace an attachment's page is in

The Notes app's image route (`/notes/attachments/<id>`) holds only the session's default-workspace token, so an image on a page in another workspace would not be found (EAS-271). With this it finds that workspace and exchanges the token for one there. The same rules and answers as locatePage, applied to the attachment's page: it answers only when the caller could read that page in its own workspace. Every other case, including an attachment on no page, gets the same 404, byte for byte. Shares locatePage's rate limits.

View as Markdown
GET
/v1/attachments/{id}/locate
AuthorizationBearer <token>

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/attachments/497f6eca-6276-4993-bfeb-53cbbbba6f08/locate"
{  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",  "slug": "string"}