List SII keys

Returns a paginated list of SII keys — the digital-certificate credentials
Cardda holds on behalf of a company to operate against Chile's Servicio de
Impuestos Internos (SII).

An SII key is what lets Cardda authenticate to the SII to sync the
company's issued/received electronic documents (DTEs), pull PDFs, and submit
acceptance/rejection events. A key becomes usable once its status is
approved; it can additionally issue documents once a certificate
password is present (can_issue?).

Response structure

Sensitive fields (password, certificate_password) are never exposed by
this endpoint — they are stripped from every serialization. Each item adds two
computed fields:

FieldDescription
can_issue?true when status is approved and a certificate password is stored. Serialized literally with the trailing ?.
company_idsUUIDs of the companies the key manages.

Scoping

Results are scoped to the keys the caller can see: keys the caller owns
(user_id == caller) plus keys whose managed companies grant the caller the
sii_keys_view or sii_keys_manage permission.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
integer
Defaults to 0

Page offset

integer
Defaults to 10

Page limit

string
enum
Defaults to ASC

Order to apply

Allowed:
string

Field to order by

string

Firebase user id of the credential owner.

string

Filter by RUT (digits plus verifier digit). Accepts a plain value
(rut=761234567) or a JSON-encoded operator object
({"$in":["761234567","12345678K"]}). Schema is type: string so both
forms validate; see Filters.

string
enum

Lifecycle status of the key.

Allowed:
string

Creation timestamp (UTC ISO-8601). Accepts a single date-time string or a
JSON-encoded operator object ({"$gte":"...","$lt":"..."}). Schema is
type: string (no format) so both forms validate.

Headers
uuid
required

UUID of the company on whose behalf the request is made. Fiscal-invoice endpoints
authorize the caller against this company (and read/write its data). SII-key
endpoints never filter their results by this header. On the SII-key list,
however, belonging to the header company is one of the ways a caller is authorized
to make the call (alongside being Cardda staff or passing their own user_id), so
the header is not merely ignored there. On the other SII-key endpoints the header
plays no part in authorization. See The company-id header
for details on how to obtain a value for this header and the error responses to
expect when it is missing or invalid.

Responses

401

Unauthorized — missing or invalid bearer token, or the caller failed the
list authorization gate. The gate passes for Cardda staff, for a caller who
belongs to the company-id header's company, or for a caller who passes
their own id as user_id. This gate is separate from result scoping:
holding sii_keys_view/sii_keys_manage determines which keys appear in the
response, but does not by itself authorize the call — a caller with those
permissions who sends neither the company-id header (for a company they
belong to) nor user_id=<own id> still receives 401. Pundit failures surface
as 401 (not 403) with an empty body.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json