For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • REST API overview
    • Access Tokens
    • Account Members
    • Account Usage Beta
    • AI Configs
    • Announcements
    • Applications Beta
    • Approvals
    • Approvals Beta
    • Audit Log
    • Code References
    • Contexts
    • Context Settings
    • Custom Roles
    • Data Export Destinations
    • Environments
    • Experiments
    • Feature Flags
    • Feature Flags Beta
    • Flag Import Configurations Beta
    • Flag Links Beta
    • Flag Triggers
    • Follow Flags
    • Holdouts Beta
    • Insights Charts Beta
    • Insights Deployments Beta
    • Insights Flag Events Beta
    • Insights Pull Requests Beta
    • Insights Repositories Beta
    • Insights Scores Beta
    • Integration Audit Log Subscriptions
    • Integration Delivery Configurations Beta
    • Integrations Beta
    • Layers
    • Metrics
    • Metrics Beta
    • OAuth2 Clients
    • Persistent Store Integrations Beta
    • Projects
    • Relay Proxy Configurations
    • Release Pipelines Beta
    • Releases Beta
    • Scheduled Changes
    • Segments
    • Tags
      • GETList tags
    • Teams
    • Teams Beta
    • Users
    • Users Beta
    • User Settings
    • Views Beta
    • Webhooks
    • Workflows
    • Workflow Templates
    • Other
Sign inTry it free
LogoLogo
REST API overviewTags

List tags

GET
/api/v2/tags
GET
/api/v2/tags
$curl https://app.launchdarkly.com/api/v2/tags \
> -H "Authorization: <apiKey>"
1{
2 "items": [
3 "ops",
4 "pro"
5 ],
6 "_links": {
7 "key": {
8 "href": "href",
9 "type": "type"
10 }
11 },
12 "totalCount": 103
13}
Get a list of tags.
Was this page helpful?
Previous

Teams

Next
Built with

Authentication

Authorizationstring
API Key authentication via header

Query parameters

kindlist of stringsOptional

Fetch tags associated with the specified resource type. Options are flag, project, environment, segment, metric, metric-data-source, aiconfig, and view. Returns all types by default.

prestringOptional
Return tags with the specified prefix
archivedbooleanOptional
Whether or not to return archived flags
limitintegerOptional
The number of tags to return. Maximum is 1000.
offsetintegerOptional
The index of the first tag to return. Default is 0.
asOfstringOptional
The time to retrieve tags as of. Default is the current time.

Response

Tag collection response
itemslist of strings
List of tags
_linksmap from strings to objects
totalCountinteger
The total number of tags

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error