GET
/
v3
/
orgs
/
{orgId}
/
data-capture
/
form-categories
curl --request GET \
  --url https://api.ctrl-hub.com/v3/orgs/{orgId}/data-capture/form-categories \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "type": "form_categories",
      "id": "92dbb844-8524-60bf-c12e-1eaf5c04",
      "attributes": {
        "name": "Health and Safety"
      },
      "meta": {
        "created_at": "2024-06-13T08:28:17.000Z"
      }
    }
  ],
  "meta": {
    "counts": {
      "limit": 10
    },
    "page": {
      "limit": 10,
      "offset": {
        "current": 20,
        "next": 30,
        "previous": 10
      }
    }
  },
  "links": {
    "current": "https://api.ctrl-hub.com/v3/orgs/7e0c875a-fd47-401d-bd25-4278ed58d721/data-capture/forms?limit=10&offset=20",
    "next": "https://api.ctrl-hub.com/v3/orgs/7e0c875a-fd47-401d-bd25-4278ed58d721/data-capture/forms?limit=10&offset=30",
    "previous": "https://api.ctrl-hub.com/v3/orgs/7e0c875a-fd47-401d-bd25-4278ed58d721/data-capture/forms?limit=10&offset=10"
  }
}

Authorizations

Authorization
string
header
required

To understand how to authenticate, see the auth docs

Path Parameters

orgId
string
required

The ID of the organisation

Query Parameters

limit
integer
default:
10

Limit the number of resources returned by the API

offset
integer
default:
0

Offset for resources returned by the API

sort
string
default:
created_at

A field in the resource to sort results with. Not all attributes are supported, please see the Object Model for sortable fields.

Response

200
application/json
data
object[]
meta
object