Skip to Content

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
/api/v1/blocks

List reusable content blocks (library entries) visible to the authenticated user.

Scope filter:

  • all (default) — all blocks the user can see
  • private — only the user's private blocks in this workspace
  • workspace — blocks shared at workspace level
  • organization — blocks shared at organization level
  • shared — sajn-curated blocks available to everyone

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Query Parameters

Header Parameters

authorization*string

Bearer token for API authentication

Response Body

200

application/json
  1. response
blocks*array<>
totalPages*integer
Range-9007199254740991 <= value <= 9007199254740991
Example Request
curl -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?