> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getlurk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Archive a trusted issuer

> Retires an issuer for good: no credential can use it; bindings and receipts stay, and its address can be set up again as a new issuer. Cannot be undone. Owner or admin in person; a key or agent gets `approval_required`.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/trusted-issuers/{id}/archive
openapi: 3.1.0
info:
  title: Lurk API
  version: 1.0.0
  description: Events in, rules decide, units change, receipts out.
servers:
  - url: https://api.getlurk.com
security: []
tags:
  - name: events
    description: Send what your users do. Lurk runs your live rules on each event.
    x-group: Events
    x-displayName: Events
  - name: units
    description: What people collect and hold, and their balances.
    x-group: Units
    x-displayName: Units
  - name: rules
    description: What Lurk does when an event comes in. A person takes a rule live.
    x-group: Rules
    x-displayName: Rules
  - name: activity
    description: A receipt for every change, with why it happened.
    x-group: Receipts
    x-displayName: Receipts
  - name: users
    description: The people your events are about.
    x-group: People
    x-displayName: People
  - name: webhook_endpoints
    description: Where Lurk sends signed notices of what changed.
    x-group: Webhooks
    x-displayName: Webhooks
  - name: known_values
    description: The properties of your own events whose values Lurk remembers.
    x-group: Known values
    x-displayName: Known values
  - name: feedback
    description: Tell the Lurk team about a bug, a gap or an idea.
    x-group: Feedback
    x-displayName: Feedback
  - name: annotations
    description: >-
      Short notes on a day of the project, such as a release or a campaign
      start.
    x-group: Annotations
    x-displayName: Annotations
  - name: trusted_issuers
    description: The sign-in providers a project trusts for its app's users.
    x-group: Trusted issuers
    x-displayName: Trusted issuers
  - name: client_events
    description: The events a signed-in device may send, and their caps.
    x-group: Client events
    x-displayName: Client events
  - name: issuer_identities
    description: Which person each sign-in subject is bound to.
    x-group: Issuer identities
    x-displayName: Issuer identities
  - name: proposals
    description: Changes an agent or Lurky asks for and a person approves or declines.
    x-group: Proposals
    x-displayName: Proposals
  - name: holds
    description: Changes a rule parked for a person to give or refuse.
    x-group: Holds
    x-displayName: Holds
  - name: audiences
    description: The groups of people that rules can read.
    x-group: Audiences
    x-displayName: Audiences
  - name: budgets
    description: What each live rule's budgets have given in the window they are in now.
    x-group: Budgets
    x-displayName: Budgets
  - name: templates
    description: Kits that add units and rules to a project in one go.
    x-group: Templates
    x-displayName: Templates
  - name: views
    description: Saved questions about a project, with their answers.
    x-group: Views
    x-displayName: Views
  - name: integrations
    description: Every way events reach Lurk or state leaves it, and the state of each.
    x-group: Integrations
    x-displayName: Integrations
  - name: projects
    description: Where units, rules and events live. An organization can have several.
    x-group: Projects
    x-displayName: Projects
  - name: clocks
    description: A test project's clock, which can be moved to try schedules and expiries.
    x-group: Clocks
    x-displayName: Clocks
paths:
  /v1/trusted-issuers/{id}/archive:
    post:
      tags:
        - trusted_issuers
      summary: Archive a trusted issuer
      description: >-
        Retires an issuer for good: no credential can use it; bindings and
        receipts stay, and its address can be set up again as a new issuer.
        Cannot be undone. Owner or admin in person; a key or agent gets
        `approval_required`.
      operationId: trusted_issuers.archive
      parameters:
        - schema:
            type: string
            description: A trusted issuer ID, starting with `iss_`.
          required: true
          description: A trusted issuer ID, starting with `iss_`.
          name: id
          in: path
        - schema:
            type: string
            description: W3C Trace Context; joins your trace to ours
          required: false
          description: W3C Trace Context; joins your trace to ours
          name: traceparent
          in: header
        - schema:
            type: string
            minLength: 1
            maxLength: 255
            description: A retry with the same key and body returns the first response
          required: true
          description: A retry with the same key and body returns the first response
          name: Idempotency-Key
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                expected_revision:
                  type: integer
                  exclusiveMinimum: 0
                  description: >-
                    The `revision` you last read. If the issuer has moved on,
                    nothing changes and the call is refused (`validation_failed`
                    on `expected_revision`): read it again.
              required:
                - expected_revision
              additionalProperties: false
      responses:
        '200':
          description: Archive a trusted issuer
          headers:
            Request-Id:
              schema:
                type: string
                description: Quote this when you contact support
              required: true
              description: Quote this when you contact support
            traceparent:
              schema:
                type: string
                description: W3C Trace Context for this call, in the caller's trace
              required: true
              description: W3C Trace Context for this call, in the caller's trace
            RateLimit:
              schema:
                type: string
                description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
              required: true
              description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
            RateLimit-Policy:
              schema:
                type: string
                description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
              required: true
              description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrustedIssuer'
        '429':
          description: Too many requests. Wait `Retry-After` seconds.
          headers:
            Request-Id:
              schema:
                type: string
                description: Quote this when you contact support
              required: true
              description: Quote this when you contact support
            traceparent:
              schema:
                type: string
                description: W3C Trace Context for this call, in the caller's trace
              required: true
              description: W3C Trace Context for this call, in the caller's trace
            RateLimit:
              schema:
                type: string
                description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
              required: true
              description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
            RateLimit-Policy:
              schema:
                type: string
                description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
              required: true
              description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
            Retry-After:
              schema:
                type: string
                description: Seconds to wait
              required: true
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    TrustedIssuer:
      type: object
      properties:
        id:
          type: string
          pattern: ^iss_[0-7][0-9a-hjkmnp-tv-z]{25}$
          description: A trusted issuer ID, starting with `iss_`.
        name:
          type: string
          minLength: 1
          maxLength: 80
          description: >-
            A name to tell issuers apart, 1 to 80 characters. Renaming is the
            only edit an issuer allows.
        profile:
          oneOf:
            - type: object
              properties:
                provider:
                  type: string
                  enum:
                    - supabase
                  description: Supabase Auth, on its default supabase.co address.
                project_ref:
                  type: string
                  pattern: ^[a-z]{20}$
                  description: >-
                    The default supabase.co issuer. A token must carry
                    is_anonymous as a boolean set to false: true is refused with
                    anonymous_session, and a missing or non-boolean value is
                    refused as invalid_token. A later opt-in may change that.
                    This profile takes only the project ref and always means
                    https://<ref>.supabase.co/auth/v1: it cannot take a custom
                    auth domain yet. Whether a custom auth domain changes a
                    token's iss is not settled; if you use one and need it
                    supported, contact us.
                audiences:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 256
                  minItems: 1
                  maxItems: 20
                  default:
                    - authenticated
                  description: >-
                    Accepted values of a token's `aud` claim, 1 to 20. A token
                    must carry exactly one audience, and it must be one of
                    these.
                algorithms:
                  type: array
                  items:
                    type: string
                    enum:
                      - RS256
                      - ES256
                  minItems: 1
                  maxItems: 2
                  default:
                    - RS256
                    - ES256
                  description: 'Signature algorithms a token may use: RS256, ES256 or both.'
                max_token_lifetime_seconds:
                  type: integer
                  minimum: 60
                  maximum: 86400
                  default: 3600
                  description: >-
                    Bounds exp minus iat, in addition to current expiry and
                    token age.
              required:
                - provider
                - project_ref
              additionalProperties: false
            - type: object
              properties:
                provider:
                  type: string
                  enum:
                    - clerk
                  description: Clerk session tokens.
                issuer:
                  type: string
                  minLength: 1
                  maxLength: 2048
                  description: >-
                    The exact Clerk Frontend API origin; verification uses RS256
                    only.
                authorized_parties:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 2048
                    description: >-
                      Shape only, not the SSRF defence: the server resolves,
                      pins and revalidates public DNS on every fetch.
                  minItems: 1
                  maxItems: 20
                  description: >-
                    Require an azp claim matching an exact allowed HTTPS origin.
                    Only Clerk session tokens (version 2: sid, v 2, sts active)
                    are accepted; a missing azp, a pending session, a
                    JWT-template token and a version 1 token are refused. A
                    development instance (issuer
                    https://<name>.clerk.accounts.dev) may also list
                    http://localhost or http://127.0.0.1, with an optional port.
                audiences:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 256
                  maxItems: 20
                  default: []
                  description: >-
                    Optional for Clerk's default session-token profile. An empty
                    list does not disable azp validation.
                max_token_lifetime_seconds:
                  type: integer
                  minimum: 60
                  maximum: 86400
                  default: 3600
                  description: >-
                    Bounds exp minus iat, in addition to current expiry and
                    token age.
              required:
                - provider
                - issuer
                - authorized_parties
              additionalProperties: false
            - type: object
              properties:
                provider:
                  type: string
                  enum:
                    - oidc
                  description: Any other OpenID Connect provider.
                issuer:
                  type: string
                  minLength: 1
                  maxLength: 2048
                  description: >-
                    The exact issuer claim. This profile checks the signature,
                    issuer, audience, expiry and lifetime, and refuses a token
                    with is_anonymous: true (anonymous_session). It applies no
                    other provider rule: it does not require is_anonymous to be
                    present, does not check role, and cannot tell a Clerk
                    session token from a Clerk JWT-template token. A Supabase
                    project on its supabase.co address or a Clerk development
                    instance (*.clerk.accounts.dev) is refused here: use the
                    supabase or clerk profile. Whether a Supabase custom auth
                    domain changes a token's iss is not settled; the supabase
                    profile cannot take a custom issuer yet, so with a custom
                    domain contact us before relying on this profile.
                jwks_url:
                  type: string
                  minLength: 1
                  maxLength: 2048
                  description: >-
                    Expected to share the issuer's origin. A different origin is
                    allowed (Google and Firebase publish keys elsewhere), but
                    the issuer reports key_origin_differs: true.
                audiences:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 256
                  minItems: 1
                  maxItems: 20
                  description: >-
                    Accepted values of a token's `aud` claim, 1 to 20. A token
                    must carry exactly one audience, and it must be one of
                    these.
                algorithms:
                  type: array
                  items:
                    type: string
                    enum:
                      - RS256
                      - ES256
                  minItems: 1
                  maxItems: 2
                  description: 'Signature algorithms a token may use: RS256, ES256 or both.'
                max_token_lifetime_seconds:
                  type: integer
                  minimum: 60
                  maximum: 86400
                  default: 3600
                  description: >-
                    Bounds exp minus iat, in addition to current expiry and
                    token age.
              required:
                - provider
                - issuer
                - jwks_url
                - audiences
                - algorithms
              additionalProperties: false
          description: >-
            How this provider's tokens are checked: its rules and settings.
            Fixed once saved: a different profile is a new issuer.
        issuer:
          type: string
          minLength: 1
          maxLength: 2048
          description: Exact verified issuer claim; immutable for this identity namespace.
        jwks_url:
          type: string
          minLength: 1
          maxLength: 2048
          description: >-
            Where the issuer's public signing keys are fetched from. Worked out
            from the profile. Shape only, not the SSRF defence: the server
            resolves, pins and revalidates public DNS on every fetch.
        revision:
          type: integer
          exclusiveMinimum: 0
          description: >-
            Version of the issuer's trust settings. It goes up when the issuer
            is activated, paused or archived, not on a rename or a check.
        status:
          type: string
          enum:
            - paused
            - active
            - archived
          description: >-
            Human trust decision, independent of signing-key health or provider
            availability.
        created_at:
          type: string
          format: date-time
          description: 'A moment in time: UTC, ISO 8601'
        checked_at:
          type:
            - string
            - 'null'
          format: date-time
          description: 'A moment in time: UTC, ISO 8601'
        last_used_at:
          type:
            - string
            - 'null'
          format: date-time
          description: 'A moment in time: UTC, ISO 8601'
        key_origin_differs:
          type: boolean
          description: >-
            True when the key address is on a different origin than the issuer
            address, which is worth a look before trusting it. Worked out by
            Lurk, never sent by a client.
        key_count:
          type: integer
          minimum: 0
          maximum: 20
          description: Usable public keys allowed by this profile.
        key_ids_hash:
          type:
            - string
            - 'null'
          pattern: ^[0-9a-f]{12}$
          description: >-
            What the last check found, as a fingerprint of the key ids (`kid`)
            of the `key_count` usable keys: the first 12 hex characters of the
            SHA-256 of the ids, sorted, as a JSON array (`["a","b"]`). Key ids
            are public. It changes when one key is swapped for another, which
            `key_count` and `algorithms` do not show, so compare it before and
            after a rotation. Null with no usable key, and for a check made
            before Lurk recorded it.
        algorithms:
          type: array
          items:
            type: string
            enum:
              - RS256
              - ES256
          maxItems: 2
          description: >-
            Algorithms of the usable keys the last check found; if the provider
            could not be reached, the last known ones stay. Empty before the
            first check, and after a pause or archive, which clear the check.
        problem:
          type:
            - string
            - 'null'
          enum:
            - unavailable
            - invalid_keys
            - no_supported_key
            - configuration_changed
            - null
          description: >-
            What the last check found wrong, or null. unavailable: the key
            address could not be reached. invalid_keys: it answered, but not
            with a usable key set. no_supported_key: it holds no RS256 or ES256
            key.
        can_activate:
          type: boolean
          description: >-
            True when the issuer could be activated now: paused, healthy, and
            checked at its current revision within the last 24 hours. Always
            false where sign-in is switched off. Worked out by Lurk, never sent
            by a client.
      required:
        - id
        - name
        - profile
        - issuer
        - jwks_url
        - revision
        - status
        - created_at
        - checked_at
        - last_used_at
        - key_origin_differs
        - key_count
        - key_ids_hash
        - algorithms
        - problem
        - can_activate
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            status:
              type: integer
            code:
              type: string
              enum:
                - invalid_json
                - invalid_key
                - forbidden
                - approval_required
                - not_found
                - idempotency_conflict
                - conflict
                - unblock_clock_reversed
                - insufficient_balance
                - reference_used
                - validation_failed
                - rate_limited
                - internal
                - unavailable
            message:
              type: string
            param:
              type: string
            next_step:
              type: string
              description: >-
                What to do about this kind of error, in one sentence. Always
                sent by current servers
            request_id:
              type: string
            doc_url:
              type: string
              format: uri
          required:
            - status
            - code
            - message
            - request_id
            - doc_url
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A project key (Developers → API keys). Keep it on your server, not in an
        app.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.