List reusable content blocks
You're viewing API version
2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.GET
List reusable content blocks (library entries) visible to the authenticated user.
Scope filter:
all(default) — all blocks the user can seeprivate— only the user's private blocks in this workspaceworkspace— blocks shared at workspace levelorganization— blocks shared at organization levelshared— sajn-curated blocks available to everyone
header
AuthorizationBearer <token>Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.
200
application/json- response
blocks*array<>totalPages*integerRange
-9007199254740991 <= value <= 9007199254740991curl -X GET 'https://app.sajn.se/api/v1/blocks?page=1&perPage=25&scope=%22all%22' \ -H 'authorization: string'Example Response
{ "blocks": [ { "id": "string", "name": "string", "description": "string", "visibility": "PRIVATE", "category": "string", "locale": "string", "isPublished": true, "sortOrder": -9007199254740991, "workspaceId": "string", "organizationId": "string", "createdById": "string", "createdAt": null, "updatedAt": null, "fields": [ { "id": "string", "type": "string", "position": -9007199254740991, "fieldMeta": null } ] } ], "totalPages": -9007199254740991}Was this page helpful?