Get Rule Set
Returns the rule set version currently visible to runtime. Draft versions created after a publish are not returned here until they are published.
Endpoints
Section titled “Endpoints”GET /v1/projects/:project_id/extractor-rule-sets/:idGET /v1/projects/:project_id/pricing-rule-sets/:idAuthentication
Section titled “Authentication”Authorization: Bearer <api-key>Requires rules read access.
Request
Section titled “Request”The request body is empty. There are no query parameters.
Path Parameters
Section titled “Path Parameters”| Field | Required | Description |
|---|---|---|
project_id |
Yes | Project that owns the rule set. |
id |
Yes | Stable rule set ID. |
Response
Section titled “Response”{ "id": "ers_openai", "name": "OpenAI extractor", "version": 2, "status": "published", "effective_from": 1783008000, "subject": {}, "dimensions": [], "charge_item_extractors": [], "created_at": 1783007000}Pricing rule sets return extractor_rule_set_id, currency, and rules instead of extractor configuration fields.