Skip to main content

Returns

Returns a list of Specification objects.

Example

specifications = galtea.specifications.list(
    product_id=product_id,
    type="CAPABILITY",
)

Parameters

product_id
string
Filter specifications by product ID.
type
string | SpecificationType
Filter by specification type. Possible values: CAPABILITY, INABILITY, POLICY.
test_type
string | TestType
Filter by test type. Possible values: QUALITY, RED_TEAMING, SCENARIOS.
from_created_at
str | int
default:"None"
Filter specifications created at or after this timestamp. Accepts ISO 8601 string (e.g., '2024-01-01T00:00:00Z') or Unix timestamp in seconds.
to_created_at
str | int
default:"None"
Filter specifications created at or before this timestamp. Accepts ISO 8601 string (e.g., '2024-12-31T23:59:59Z') or Unix timestamp in seconds.
sort_by_created_at
string
Sort specifications by creation date. Valid values are "asc" and "desc".
offset
int
default:"0"
Number of specifications to skip before starting to collect results. Use for pagination.
limit
int
default:"1000"
Maximum number of specifications to return in a single request.