Skip to main content
GET
/
v1
/
trace
/
rule-packs
/
{id}
Get a rule pack
curl --request GET \
  --url https://api.pyai.com/v1/trace/rule-packs/{id} \
  --header 'Authorization: Bearer <token>'
{
  "object": "trace.rule_pack",
  "id": "tpack_...",
  "pack_id": "tcpa",
  "version": "<string>",
  "builtin": true,
  "jurisdiction": "<string>",
  "legal_status": "<string>",
  "etag": "<string>",
  "created_at": 123,
  "spec": {}
}

Authorizations

Authorization
string
header
required

Use Authorization: Bearer pyai_live_... (or pyai_test_...).

Path Parameters

id
string
required

The pack_id, e.g. tcpa.

Query Parameters

version
string

Pin a specific version; omit for the latest active.

Response

Rule pack (with authored spec)

object
string
Example:

"trace.rule_pack"

id
string
Example:

"tpack_..."

pack_id
string
Example:

"tcpa"

version
string
builtin
boolean

True for PyAI's bundled packs; false for tenant uploads.

jurisdiction
string | null
etag
string
status
enum<string>
Available options:
active,
deprecated
created_at
integer

Unix ms.

spec
object

The authored DSL (only on the single-pack GET).