Hoppa till innehållet

Blogg

Blog and news posts for the channel, with tag filtering and related-post lookup.

2 anrop GET Bas-URL https://api.erp.fluit.cloud/ecom

Autentisering, felkoder, rate limits, idempotens och paginering gäller alla anrop och står samlade under Kom igång.

GET /blog

List published blog posts / news

Returns the channel's published posts, newest first, with their tags and cover images. Filter with ?tag= and choose the kind with ?type=BlogPost (default) or ?type=NewsPost; an unrecognised type falls back to BlogPost.

Visa hela beskrivningen

Page is 1-based, default pageSize is 12 and the maximum is 50. Scheduled posts appear on their publish date, so the response is time-dependent and cached for a short while.

Frågeparametrar

Fält Typ
page integer
pageSize integer
tag string
type string

Svar

200 BlogListResponse
Fält Typ
items BlogPost[] · nullable
page integer
pageSize integer
totalCount integer
totalPages integer
429 Rate limit exceeded. Wait the number of seconds given in Retry-After. The body is problem-shaped application/json, not application/problem+json. This API sends no X-RateLimit-* headers — the quota is discovered here.
  • Retry-After — Seconds to wait before retrying.

Standardfel: 404 Felhantering

Exempel

curl
curl "https://api.erp.fluit.cloud/ecom/blog" \
  -H "X-Tenant-Id: $FLUIT_TENANT_ID" \
  -H "X-Channel: web"
Svar 200
{
  "items": [
    {
      "authorName": "Widget A",
      "excerpt": "string",
      "featuredImageUrl": "https://cdn.fluit.cloud/assets/widget-a-front.jpg",
      "pageType": "string",
      "publishDate": "2026-06-11T09:24:13.418",
      "slug": "string",
      "tags": [
        "string"
      ],
      "title": "string"
    }
  ],
  "page": 1,
  "pageSize": 50,
  "totalCount": 137,
  "totalPages": 3
}

Bas-URL https://api.erp.fluit.cloud/ecom. Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.

Scheman

Objekten som gruppens anrop refererar till. Fälttabellerna ovan går ett steg djupt och länkar hit i stället för att upprepa samma schema på varje endpoint.

BlogPost

BlogPostListItem
Fält Typ
authorName string · nullable
excerpt string · nullable
featuredImageUrl string · nullable
pageType string · nullable
publishDate string(date-time) · nullable
slug string · nullable
tags string[] · nullable
title string · nullable