GET/api/orgs/{org_id}/retention/override-targets

List override targets

Targets an override can name: recent projects and request tags, or the organization's trace tags.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

Query parameters

  • scopeenumrequired

    project, request_tag or trace_tag.

    "project""request_tag""trace_tag"
  • qstring

    Only targets containing this text.

Responses

  • 200

    Targets.

    Response
    • targetsarray<object>
  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    The resource does not exist or belongs to another organization.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

Request

curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/retention/override-targets?scope=request_tag&q=env' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "targets": [
    {
      "target": "env:staging",
      "label": "env:staging"
    }
  ]
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/retention/override-targets?scope=request_tag&q=env