Tag Detail API
Tags APIs
Tag Detail API
Retrieve the list of values configured under a specific organization tag
Tag Detail API
Documentation Index
Fetch the complete documentation index at: https://docs.pazy.io/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
All requests require an API key in the request headers. Headers:Request
Content-Type:application/json
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tagId | string | Yes | The unique slug identifier of the tag whose values are to be fetched. Obtain this from the Tag List API. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
value | string | No | Filter tag values by value text (partial match). Min 1, Max 200 characters. |
limit | integer | No | Number of records to return. Min 1, Max 100. |
cursor | string | No | Cursor for pagination. Default 0. |
Code Examples
Success Response
HTTP Status:200 OK
Response Fields:
| Field | Type | Description |
|---|---|---|
ok | boolean | Indicates whether the request was successful |
data | object | Contains the tag values response data |
data.tags | array | List of values configured for the tag |
data.tags[].id | number | Unique identifier for the tag value (use this as tagId in the Invoice List API to filter invoices by this value) |
data.tags[].value | string | The tag value text |
data.tags[].dateCreated | string | Date when the tag value was created (ISO 8601 format) |
data.tags[].isActive | boolean | Indicates whether the tag value is currently active |
data.context | object | Pagination metadata |
data.context.hasMore | boolean | Indicates whether there are more tag values to fetch |
data.context.nextCursor | number | Cursor to fetch the next page |
Response Example
Error Responses
Tag Not Found
HTTP Status:404 Not Found
Authentication Errors
HTTP Status:401 Unauthorized
Permission Errors
HTTP Status:403 Forbidden
Internal Error
HTTP Status:500 Internal Server Error
Best Practices
- Use the
idfrom a tag value as thetagIdparameter in the Invoice List API to filter invoices that carry this tag value - The
isActivefield indicates whether the value is still in use — inactive values are returned for historical reference but should not be used on new transactions - Use
valueto narrow down results — partial matching is supported (e.g.,EngmatchesEngineering) - Use
cursorandlimittogether to paginate;nextCursorfrom the response can be used as thecursorvalue for the next call