Site Qwality API Keys API

Create and revoke API bearer tokens.

GitHub OpenAPI

Operations 5

GET /account/api_key List API keys for the authenticated account #
POST /account/api_key Create a new API key for the authenticated account #
DELETE /account/api_key/{api_key_id} Revoke an API key #
POST /account/api_key/{api_key_id}/rotate Rotate an API key: mint a replacement and revoke the predecessor, in one… #
POST /v1/api-keys/{api_key_id}/roll Roll an API key #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/siteqwality-com:siteqwality-com-api-keys-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

siteqwality-com-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Siteqwality Com API Keys API
  version: 0.1.0
  contact:
    name: Site Qwality Support
    url: https://siteqwality.com
    email: support@siteqwality.com
  license:
    name: Proprietary
  description: 'Operations tagged API Keys across 2 of this provider''s published API definitions: siteqwality-com-openapi-openapi.json, siteqwality-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.siteqwality.com
  description: Production
tags:
- name: API Keys
  description: Create and revoke API bearer tokens.
paths:
  /account/api_key:
    get:
      tags:
      - API Keys
      summary: List API keys for the authenticated account
      description: 'Secrets are never returned: only the stored prefix/suffix fragments, the

        key type, scopes, stored ingest settings and lifecycle timestamps. Revoked keys are

        omitted; expired ones are included so the customer can see why a key

        stopped working rather than watching it silently disappear.


        The response stays a bare array, unchanged in shape from before hashing,

        so a dashboard build that predates this deploy still renders the list.'
      operationId: list_api_keys
      responses:
        '200':
          description: API keys, without secrets
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiKeySummary'
        '401':
          description: Missing or invalid authentication
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    post:
      tags:
      - API Keys
      summary: Create a new API key for the authenticated account
      description: 'The response contains the full secret. This is the ONLY time it is ever

        shown: only its SHA-256 is stored, so it cannot be retrieved again, only

        rotated.


        `key_type` defaults to `full` when omitted, which is exactly what every

        key did before this endpoint grew types. The dashboard sends `ingest`

        explicitly, because a key destined for a log-forwarder config should not

        also be able to delete monitors.'
      operationId: create_api_key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApiKeyRequest'
        required: true
      responses:
        '200':
          description: Newly minted API key; the secret is only returned once
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyWithSecretResponse'
        '400':
          description: Invalid name, scopes, expiry or ingest settings, or key cap reached
        '401':
          description: Missing or invalid authentication
        '403':
          description: Caller is not an admin
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
  /account/api_key/{api_key_id}:
    delete:
      tags:
      - API Keys
      summary: Revoke an API key
      description: 'The route and verb are unchanged, so the dashboard''s existing delete

        button keeps working, but the row is now kept and stamped `revoked_at`

        instead of being deleted. Revocation takes effect immediately: both the

        customer API and the ingest authorizers check `revoked_at` on every

        request. Keeping the row preserves the audit history of a credential that

        may have been used to change things.


        Revoked keys disappear from `GET /account/api_key`, which is exactly what

        a delete looked like before.


        Deliberately idempotent: an unknown or already-revoked id still returns

        200. The M2M equivalent 404s on an unknown id, but this endpoint has

        always returned 200 for one (the DELETE simply matched no rows), and a

        caller that has been relying on that must not start seeing errors.'
      operationId: delete_api_key
      parameters:
      - name: api_key_id
        in: path
        description: API key identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: API key revoked (or was already)
        '401':
          description: Missing or invalid authentication
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
  /account/api_key/{api_key_id}/rotate:
    post:
      tags:
      - API Keys
      summary: 'Rotate an API key: mint a replacement and revoke the predecessor, in one…'
      description: 'Because the secret is hashed at rest there is no "reveal it again", so

        rotation is how a customer recovers from a lost or leaked key. The new key

        inherits the old one''s name, type, scopes, expiry and stored ingest settings.

        Rotation preserves older stored values without create-time validation.


        The old secret stops working the moment this returns; there is no grace

        period. A caller that needs overlap should instead create a second key,

        deploy it, then revoke the first.'
      operationId: rotate_api_key
      parameters:
      - name: api_key_id
        in: path
        description: API key identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: New key; the secret is only returned once
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyWithSecretResponse'
        '401':
          description: Missing or invalid authentication
        '404':
          description: API key not found or already revoked
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
  /v1/api-keys/{api_key_id}/roll:
    post:
      tags:
      - API Keys
      summary: Roll an API key
      operationId: v1_roll_api_key
      parameters:
      - name: api_key_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: Idempotency-Key
        in: header
        description: 'Makes a retry safe, but the new secret is shown once and never stored: a retry with the same key and body is refused with 409 `secret_not_replayable` instead of running again.'
        required: false
        schema:
          type: string
          maxLength: 255
      requestBody:
        description: Optional
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/RollApiKeyRequest'
              - type: 'null'
      responses:
        '200':
          description: The new key and its secret, shown once
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RolledApiKey'
        '401':
          description: Missing or invalid credentials
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: The key or member may not do this, or lacks the scope it needs
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: No such key in this account
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: The key's successor is already live, or an overlap would pass the active key limit
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '422':
          description: Invalid `overlap_hours`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Too many requests; wait for the time in `Retry-After`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
components:
  schemas:
    ApiKeyType:
      type: string
      description: 'What a customer API key is allowed to do.


        Mirrors the Datadog split between an API key (telemetry push) and an

        application key (full API access), collapsed into one credential with a

        type so the ingest path and the management path can share a table.'
      enum:
      - ingest
      - full
    ApiKeyStatus:
      type: string
      description: 'Lifecycle state of a key, derived rather than stored so it can never

        disagree with the timestamps.'
      enum:
      - active
      - expired
      - revoked
    ApiKeySummary:
      type: object
      description: 'One API key in list responses. Never contains the secret: after creation

        the secret exists only in the customer''s hands.'
      required:
      - id
      - account_id
      - key_prefix
      - key_last_four
      - key_type
      - scopes
      - ingest_signals
      - status
      - created_at
      properties:
        id:
          type: string
          format: uuid
        account_id:
          type: string
          format: uuid
        friendly_name:
          type:
          - string
          - 'null'
        key_prefix:
          type: string
          description: First 8 characters of the secret, kept in plaintext for display.
        key_last_four:
          type: string
          description: Last 4 characters of the secret, kept in plaintext for display.
        key_type:
          $ref: '#/components/schemas/ApiKeyType'
        scopes:
          type: array
          items:
            type: string
          description: Empty means unrestricted.
        ingest_signals:
          type: array
          items:
            type: string
          description: Allowed ingest signals; empty means all. New values use logs, traces, metrics order.
        ingest_default_service:
          type:
          - string
          - 'null'
          description: Stored default service for ingest; does not grant a signal permission.
        ingest_default_env:
          type:
          - string
          - 'null'
          description: Stored default environment for ingest; does not grant a signal permission.
        status:
          $ref: '#/components/schemas/ApiKeyStatus'
        created_at:
          type: string
          format: date-time
        last_used_at:
          type:
          - string
          - 'null'
          format: date-time
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
        revoked_at:
          type:
          - string
          - 'null'
          format: date-time
    FieldError:
      type: object
      description: One validation failure; `pointer` is an RFC 6901 pointer into the request body.
      required:
      - pointer
      - detail
      properties:
        pointer:
          type: string
        detail:
          type: string
    RollApiKeyRequest:
      type: object
      properties:
        overlap_hours:
          type:
          - integer
          - 'null'
          format: int64
          description: 'How long the old key keeps working: 0 to 168, default 24. Zero ends it now.'
          default: null
      additionalProperties: false
    Problem:
      type: object
      description: An RFC 9457 problem, the body of every `/v1` error.
      required:
      - type
      - title
      - status
      properties:
        type:
          type: string
          description: '`https://docs.siteqwality.com/errors/` and the failure''s code, such as `not_found`.'
        title:
          type: string
        status:
          type: integer
          format: int32
          minimum: 0
        detail:
          type:
          - string
          - 'null'
        instance:
          type:
          - string
          - 'null'
          description: '`urn:uuid:` and the request id.'
        errors:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/FieldError'
          description: The invalid fields, when the request body was refused.
    ApiKeyWithSecretResponse:
      type: object
      description: 'Response for create and rotate, the ONLY places a full secret ever

        appears. It is not stored and cannot be retrieved again.'
      required:
      - api_key
      - secret
      properties:
        api_key:
          $ref: '#/components/schemas/ApiKeySummary'
        secret:
          type: string
          description: The full secret. Shown exactly once; store it now.
    CreateApiKeyRequest:
      type: object
      description: Body for `POST /account/api_key`.
      properties:
        friendly_name:
          type:
          - string
          - 'null'
        key_type:
          oneOf:
          - $ref: '#/components/schemas/ApiKeyType'
            description: 'Omitted means `full`.


              This is deliberately NOT the dashboard''s default (which is `ingest`,

              the safer choice). The API default has to preserve the historical

              behavior, because a customer script that has been POSTing

              `{"friendly_name": "..."}` for years must keep getting a key that can

              do what its keys have always done.'
          - type: 'null'
        scopes:
          type:
          - array
          - 'null'
          items:
            type: string
          description: 'Scope restriction for a `full` key, drawn from the same `read:<family>` / `write:<family>` taxonomy as M2M

            clients. Rejected on an `ingest` key, which never reaches the scope chokepoint at all.'
        full_access:
          type: boolean
          description: '`true` asks for a `full` key with no scope list, which reaches the whole customer API. A `full` key with no

            scopes is refused without it. Ignored when scopes are given or on `ingest` keys.'
        expires_in_days:
          type:
          - integer
          - 'null'
          format: int32
          description: 'Optional lifetime in days. Omitted means the key never expires, which

            matches the Datadog model and is what every existing key does.'
          minimum: 0
        ingest_signals:
          type:
          - array
          - 'null'
          items:
            type: string
          description: 'Ingest keys only: logs, traces, metrics, without duplicates. Omitted or empty allows all.

            Stored and returned in logs, traces, metrics order; non-null is rejected on full keys.'
        ingest_default_service:
          type:
          - string
          - 'null'
          description: 'Ingest keys only: trimmed default service, at most 256 Unicode scalar values.

            Empty after trimming means no default. Non-null is rejected on full keys.'
        ingest_default_env:
          type:
          - string
          - 'null'
          description: 'Ingest keys only: trimmed default environment, at most 128 Unicode scalar values.

            Empty after trimming means no default. Non-null is rejected on full keys.'
    RolledApiKey:
      type: object
      required:
      - api_key
      - secret
      - previous_api_key_id
      - previous_expires_at
      properties:
        api_key:
          $ref: '#/components/schemas/ApiKeySummary'
        secret:
          type: string
          description: Shown exactly once.
        previous_api_key_id:
          type: string
          format: uuid
        previous_expires_at:
          type: string
          format: date-time
          description: When the old key stops working.
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Generate an API key in account settings and pass it as `Authorization: Bearer <KEY>`.'
x-refined-from:
- siteqwality-com-openapi-openapi.json
- siteqwality-com-openapi.json