Use these APIs to create, organize, and manage tags on dockets in our system.
Tags help you organize and share collections of cases. You can create public tags that others can view or keep them private for your own use. Tags can be described using markdown to create sharable collections.
This page focuses on the tags API itself. To learn more about tags generally and how to use them in the web interface, read the tags documentation.
/api/rest/v4/tags/User Tags are collections you create to organize dockets. Each tag has a name, optional description, and can be made public or kept private.
name (required) — A unique slug for your tag (lowercase, no spaces)title (optional) — A human-friendly title for displaydescription (optional) — Markdown description of the tagpublished (optional) — Boolean, whether the tag is public (default: false)view_count (read-only) — Number of times the tag page has been viewedTo learn more about this API, make an HTTP OPTIONS request:
curl -X OPTIONS \ --header 'Authorization: Token <your-token-here>' \ "https://www.courtlistener.com/api/rest/v4/tags/"
Create a new tag with a POST request:
curl -X POST \ --data 'name=my-important-cases' \ --data 'title=My Important Cases' \ --data 'description=Cases I am tracking for work' \ --data 'published=false' \ --header 'Authorization: Token <your-token-here>' \ "https://www.courtlistener.com/api/rest/v4/tags/"
The response:
{
"id": 123,
"date_created": "2024-12-08T10:30:00.000000-08:00",
"date_modified": "2024-12-08T10:30:00.000000-08:00",
"user": 456,
"name": "my-important-cases",
"title": "My Important Cases",
"description": "Cases I am tracking for work",
"published": false,
"view_count": 0,
"dockets": []
}
Update a tag with a PATCH request:
curl -X PATCH \ --data 'published=true' \ --header 'Authorization: Token <your-token-here>' \ "https://www.courtlistener.com/api/rest/v4/tags/123/"
List all your tags with a GET request:
curl -X GET \ --header 'Authorization: Token <your-token-here>' \ "https://www.courtlistener.com/api/rest/v4/tags/"
Delete a tag with a DELETE request:
curl -X DELETE \ --header 'Authorization: Token <your-token-here>' \ "https://www.courtlistener.com/api/rest/v4/tags/123/"
/api/rest/v4/docket-tags/Docket Tags connect your User Tags to specific dockets. This is a many-to-many relationship managed through this API.
tag (required) — The ID of the User Tagdocket (required) — The ID of the docket to tagTo learn more about this API, make an HTTP OPTIONS request:
curl -X OPTIONS \ --header 'Authorization: Token <your-token-here>' \ "https://www.courtlistener.com/api/rest/v4/docket-tags/"
Add a docket to a tag with a POST request:
curl -X POST \ --data 'tag=123' \ --data 'docket=456789' \ --header 'Authorization: Token <your-token-here>' \ "https://www.courtlistener.com/api/rest/v4/docket-tags/"
The response:
{
"id": 789,
"tag": 123,
"docket": 456789
}
To see all dockets tagged with a specific tag, filter by tag ID:
curl -X GET \ --header 'Authorization: Token <your-token-here>' \ "https://www.courtlistener.com/api/rest/v4/docket-tags/?tag=123"
To untag a docket, delete the Docket Tag object:
curl -X DELETE \ --header 'Authorization: Token <your-token-here>' \ "https://www.courtlistener.com/api/rest/v4/docket-tags/789/"
Tags are related to the Pray and Pay program, which allows you to request PACER documents for cases you're tracking. When using Pray and Pay, you can organize the cases you're monitoring using tags, making it easy to manage large collections of cases.
These services are sponsored by Free Law Project and users like you. We provide these services in furtherance of our mission to make the legal sector more innovative and equitable.
We have provided these services for over a decade, and we need your contributions to continue curating and enhancing them.
Will you support us today by becoming a member?