Skip to content

Export

The export endpoint returns all matching resources in a single response without pagination. This is useful for data exports, migrations, static site generation, and integrations that need the full dataset.

GET /v2/resources/{blueprint}/export

Requires the view ability.

Query parameters

The export endpoint supports the same filtering and search parameters as the list endpoint:

ParameterTypeDescription
filterobjectFilter conditions (same syntax as list endpoint)
searchstringFull-text search query
variantstringVariant slug for multilingual blueprints

Examples

Export all published resources:

bash
curl "https://api.diggama.com/v2/resources/blog-posts/export?filter[published]=true" \
  -H "Authorization: Bearer {token}"

Export resources matching a search query:

bash
curl "https://api.diggama.com/v2/resources/products/export?search=wireless&filter[category][eq]=electronics" \
  -H "Authorization: Bearer {token}"

Response

The response contains all matching resources in the data array:

json
{
  "data": [
    {
      "id": "gKqv6dx6pBk9",
      "type": "resource",
      "published_at": "2026-01-15T10:30:00+00:00",
      "created_at": "2026-01-10T08:00:00+00:00",
      "updated_at": "2026-01-15T10:30:00+00:00",
      "attributes": {
        "title": "Wireless headphones",
        "price": 79.99,
        "category": "electronics"
      },
      "relationships": {
        "blueprint": { "data": { "id": "products", "type": "blueprint" } }
      }
    },
    {
      "id": "xR4mN2vBwQy7",
      "type": "resource",
      "published_at": "2026-01-20T14:00:00+00:00",
      "created_at": "2026-01-18T11:00:00+00:00",
      "updated_at": "2026-01-20T14:00:00+00:00",
      "attributes": {
        "title": "Wireless keyboard",
        "price": 49.99,
        "category": "electronics"
      },
      "relationships": {
        "blueprint": { "data": { "id": "products", "type": "blueprint" } }
      }
    }
  ]
}

Unlike the list endpoint, the export response does not include pagination metadata (links, meta). All matching resources are returned in a single response.

Diggama Documentation