Search the docs
Find a page, a section, or an endpoint.
labels
Every labels endpoint, generated from the API's own schemas.
List labels
get/api/v1/labels
The labels of one address.
Parameters
- identity_iduuid
Responses
- 200The labels.
- 401No API key, or one that is not valid.
- 404No such resource, **or** one belonging to another account. The two are deliberately indistinguishable: a different answer would enumerate what exists.
- 429Rate limited. `X-RateLimit-Reset` says when to retry.
curl https://pidgeon.ai/api/v1/labels \
-H "Authorization: Bearer $PIDGEON_API_KEY"Create a label
post/api/v1/labels
Body
- identity_iduuid
- namestring
- colourstring
Responses
- 201The label.
- 401No API key, or one that is not valid.
- 404No such resource, **or** one belonging to another account. The two are deliberately indistinguishable: a different answer would enumerate what exists.
- 429Rate limited. `X-RateLimit-Reset` says when to retry.
curl https://pidgeon.ai/api/v1/labels \
-X POST \
-H "Authorization: Bearer $PIDGEON_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'Rename or recolour a label
patch/api/v1/labels/{id}
A body with neither `name` nor `colour` is refused.
Parameters
- idstring
Body
- namestring
- colourstring
Responses
- 200The label.
- 401No API key, or one that is not valid.
- 404No such resource, **or** one belonging to another account. The two are deliberately indistinguishable: a different answer would enumerate what exists.
- 429Rate limited. `X-RateLimit-Reset` says when to retry.
curl https://pidgeon.ai/api/v1/labels/{id} \
-X PATCH \
-H "Authorization: Bearer $PIDGEON_API_KEY" \
-H "Content-Type: application/json" \
-d '{ … }'Delete a label
delete/api/v1/labels/{id}
The label goes; the conversations it was on stay.
Parameters
- idstring
Responses
- 200Deleted.
- 401No API key, or one that is not valid.
- 404No such resource, **or** one belonging to another account. The two are deliberately indistinguishable: a different answer would enumerate what exists.
- 429Rate limited. `X-RateLimit-Reset` says when to retry.
curl https://pidgeon.ai/api/v1/labels/{id} \
-X DELETE \
-H "Authorization: Bearer $PIDGEON_API_KEY"