Skip to main content
GET
/
admin
/
products
Get products
curl --request GET \
  --url https://api-dev.narrative.io/admin/products \
  --header 'Authorization: Bearer <token>'
{
  "records": [
    {
      "id": "cd98bbb6-1086-4aea-9b5f-8ba39671a659",
      "sku": "general-storage",
      "sku_type": {
        "category": "storage"
      },
      "payable_company_id": 1,
      "name": "name",
      "cloud_platform": {
        "region": "us-east-1",
        "platform": "aws"
      },
      "unit": "bytes",
      "default_rate": {
        "type": "per_unit",
        "unit_price": {
          "value": 1,
          "expressed_in": "cents",
          "currency": "USD"
        }
      },
      "status": "active",
      "created_at": "2023-02-13T12:55:24.104Z",
      "created_by_user_id": 1,
      "updated_at": "2023-02-13T12:55:24.104Z",
      "updated_by_user_id": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

per_page
integer

Number of records to return.

offset
integer

Number of records to skip (it's usually page_number * per_page).

Response

200 - application/json

OK

records
object[]