Discover the exposed record types

​

Every record type this API serves, with its path segment and the filters, sort keys and expansions its routes accept — the same information as the OpenAPI document, in one call.

Responses

  • application/json
  • The credential was refused: none sent (CAPI11), an API key that is not valid (CAPI15), or an OAuth sign-in that has expired (CAPI16), was not issued for this API (CAPI17), names an organization T0 does not hold (CAPI18) or a membership that is no longer usable (CAPI19). detail says what to do.

Request Example for get/v1/types
curl https://api.t0.ai/v1/types \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "types": [
    {
      "name": "string",
      "segment": "string",
      "filterable_fields": [
        "string"
      ],
      "sortable_fields": [
        "string"
      ],
      "expandable_links": [
        "string"
      ],
      "has_status": true,
      "status_values": [
        "string"
      ]
    }
  ],
  "segment_rule": "string"
}