Tag

The tag resource.

Basehttps://rest.carbon.ms/tag
GET/tag

List tags

Retrieve a paginated list of tags. Filter, order, and select columns with PostgREST query parameters.

Query parameters

selectstring

Comma-separated columns to return. Defaults to all.

orderstring

Column to sort by, e.g. `createdAt.desc`.

limitinteger

Maximum rows to return.

offsetinteger

Rows to skip, for pagination.

GEThttps://rest.carbon.ms/tag
curl --request GET \
  --url 'https://rest.carbon.ms/tag?select=*&limit=10' \
  --header 'Authorization: Bearer <api-key>'
Response
[
  {
    "name": "Example",
    "table": "string",
    "companyId": "xyz789",
    "createdAt": "2026-01-01T00:00:00Z",
    "createdBy": "string"
  }
]
GET/tag

Retrieve a tag

Fetch a single tag by filtering on `name`.

Query parameters

namestring

Match on the tag's `name`, e.g. `eq.{id}`.

GEThttps://rest.carbon.ms/tag
curl --request GET \
  --url 'https://rest.carbon.ms/tag?name=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
Response
{
  "name": "Example",
  "table": "string",
  "companyId": "xyz789",
  "createdAt": "2026-01-01T00:00:00Z",
  "createdBy": "string"
}
POST/tag

Create a tag

Create a new tag.

POSThttps://rest.carbon.ms/tag
curl --request POST \
  --url https://rest.carbon.ms/tag \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"name":"Example"}'
Response
{
  "name": "Example",
  "table": "string",
  "companyId": "xyz789",
  "createdAt": "2026-01-01T00:00:00Z",
  "createdBy": "string"
}
PATCH/tag

Update a tag

Update an existing tag, matched on `name`.

PATCHhttps://rest.carbon.ms/tag
curl --request PATCH \
  --url 'https://rest.carbon.ms/tag?name=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"name":"Example"}'
Response
{
  "name": "Example",
  "table": "string",
  "companyId": "xyz789",
  "createdAt": "2026-01-01T00:00:00Z",
  "createdBy": "string"
}
DELETE/tag

Delete a tag

Delete a tag, matched on `name`. Returns 204 No Content.

Query parameters

namestring

The `name` of the tag to delete, e.g. `eq.{id}`.

DELETEhttps://rest.carbon.ms/tag
curl --request DELETE \
  --url 'https://rest.carbon.ms/tag?name=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
204 No Content