Account

List the consumer's saved config profiles

Returns the signed-in consumer's saved config profiles (newest first). A saved profile is a named, reusable bundle of dashboard-runner inputs — a default org number, action, and test payload — reloaded into the in-dashboard dry-run preview. The bundle carries NO secrets (never an API key, never a government token) and no real personal data. Session-cookie auth (NOT Bearer); cross-tenant isolation enforced by the consumer_select_own_profiles RLS policy AND an explicit .eq('consumer_id', $1) filter. consumer_id is deliberately omitted from the wire shape (the caller already knows their own id). Supports conditional GET: the response carries a strong SHA-256 ETag and honours If-None-Match with 304 Not Modified. Cache-Control: private, max-age=60 + Vary: Cookie — the data is consumer-private and never enters a shared cache.

get/api/v1/account/profiles

Request

  • Base URL: https://www.apier.no
  • URL: https://www.apier.no/api/v1/account/profiles
  • Auth: API key in cookie sb-access-token

Headers

If-None-Matchstring

Strong ETag from a prior GET of this resource. When it matches the current state the server returns 304 Not Modified with an empty body, saving the payload.

Response

Saved profiles for the signed-in consumer. Carries a strong SHA-256 ETag header.

successtrue required

Example response

{
  "_meta": {
    "rulebook_version": "v1.0.0",
    "source": "apier.no",
    "data_source": "Brønnøysund Enhetsregisteret + Apier Universal Rulebook",
    "schema_version": "1.0.0",
    "legal_basis": "NLOD — public registry reuse",
    "response_timestamp": "2026-04-24T12:00:00.000Z",
    "response_hash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "source_snapshot_id": "brreg-2026-04-24T02:00:00.000Z",
    "cost_nok": 0.5,
    "wallet_remaining_nok": 9.5,
    "spend_cap_remaining_nok": 12.5
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.