Site Qwality User Contact Methods API

Per-user contact methods (email, sms, slack DM, etc.).

GitHub OpenAPI

Operations 8

GET /user/{user_id}/contact_method List contact methods for a user #
POST /user/{user_id}/contact_method Add a contact method (email, sms, slack DM, etc.) for a user #
DELETE /user/{user_id}/contact_method/{contact_method_id} Delete a contact method #
PATCH /user/{user_id}/contact_method/{contact_method_id} Change a contact method's address or number. A new value must be verified again #
POST /user/{user_id}/contact_method/{contact_method_id}/verification Send a 6-digit code to a contact method so its owner can prove it reaches them #
POST /user/{user_id}/contact_method/{contact_method_id}/verification/confirm Confirm a contact method with the code sent to it #
POST /v1/me/contact-methods/{contact_method_id}/test Send a test to one of your contact methods #

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-user-contact-methods-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-user-contact-methods-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Siteqwality Com User Contact Methods API
  version: 0.1.0
  contact:
    name: Site Qwality Support
    url: https://siteqwality.com
    email: support@siteqwality.com
  license:
    name: Proprietary
  description: 'Operations tagged User Contact Methods 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: User Contact Methods
  description: Per-user contact methods (email, sms, slack DM, etc.).
paths:
  /user/{user_id}/contact_method:
    get:
      tags:
      - User Contact Methods
      summary: List contact methods for a user
      operationId: list_user_contact_methods
      parameters:
      - name: user_id
        in: path
        description: User identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: User's contact methods
        '401':
          description: Missing or invalid authentication
        '404':
          description: User not found
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    post:
      tags:
      - User Contact Methods
      summary: Add a contact method (email, sms, slack DM, etc.) for a user
      operationId: create_user_contact_method
      parameters:
      - name: user_id
        in: path
        description: User identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUserContactMethodRequest'
        required: true
      responses:
        '201':
          description: Contact method created. The user's sign-in email is created verified; anything else starts unverified. Default high and low rules are added for urgencies the user has none for when the method can be used in a rule.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserContactMethodResponse'
        '400':
          description: Invalid request body, or a phone number without a country or invalid for its country
        '401':
          description: Missing or invalid authentication
        '403':
          description: Only the user or an admin may change a user's contact methods
        '404':
          description: User not found
        '409':
          description: The user already has 20 contact methods (`contact_method_limit_reached`)
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
  /user/{user_id}/contact_method/slack_link:
    post:
      tags:
      - User Contact Methods
      summary: Link your Slack account with the token from the link `/oncall` replied with in…
      operationId: link_slack_account
      parameters:
      - name: user_id
        in: path
        description: 'User identifier: the signed-in user'
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkSlackAccountRequest'
        required: true
      responses:
        '200':
          description: 'Already linked: the user''s existing Slack DM to this Slack member'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserContactMethodResponse'
        '201':
          description: 'Linked: a verified Slack DM that sends with the workspace''s Slack integration, and default rules for urgencies the user has none for'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserContactMethodResponse'
        '400':
          description: The link is invalid (`slack_link_invalid`) or expired (`slack_link_expired`)
        '401':
          description: Missing or invalid authentication
        '403':
          description: Only the user, signed in to the dashboard, may link their own Slack account
        '404':
          description: This account has not connected the Slack workspace (`slack_workspace_not_connected`)
        '409':
          description: The workspace's Slack integration is turned off (`slack_workspace_disabled`), another member of the account already has this Slack account (`slack_member_linked_elsewhere`), or the user has 20 contact methods (`contact_method_limit_reached`)
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
  /user/{user_id}/contact_method/{contact_method_id}:
    delete:
      tags:
      - User Contact Methods
      summary: Delete a contact method
      operationId: delete_user_contact_method
      parameters:
      - name: user_id
        in: path
        description: User identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: contact_method_id
        in: path
        description: Contact method identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Contact method deleted
        '401':
          description: Missing or invalid authentication
        '403':
          description: Only the user or an admin may change a user's contact methods
        '404':
          description: Contact method not found
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    patch:
      tags:
      - User Contact Methods
      summary: Change a contact method's address or number. A new value must be verified again
      operationId: update_user_contact_method
      parameters:
      - name: user_id
        in: path
        description: User identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: contact_method_id
        in: path
        description: Contact method identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserContactMethodRequest'
        required: true
      responses:
        '200':
          description: Contact method updated. A changed address or number is unverified, unless it is the user's sign-in email.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserContactMethodResponse'
        '400':
          description: Invalid details, a phone number without a country or invalid for its country, or a changed Slack member on a Slack DM linked from Slack
        '401':
          description: Missing or invalid authentication
        '403':
          description: Only the user or an admin may change a user's contact methods
        '404':
          description: Contact method not found
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
  /user/{user_id}/contact_method/{contact_method_id}/verification:
    post:
      tags:
      - User Contact Methods
      summary: Send a 6-digit code to a contact method so its owner can prove it reaches them
      operationId: send_contact_method_verification
      parameters:
      - name: user_id
        in: path
        description: User identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: contact_method_id
        in: path
        description: Contact method identifier
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Code sent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactMethodVerificationSent'
        '400':
          description: This type of contact method cannot be verified
        '401':
          description: Missing or invalid authentication
        '403':
          description: Only the user or an admin may change a user's contact methods
        '404':
          description: Contact method not found
        '409':
          description: Already verified (`contact_method_already_verified`), or no SMS left this period (`sms_quota_exhausted`)
        '429':
          description: Sent less than a minute ago, or the daily limit is reached (`rate_limited`)
        '500':
          description: Internal server error
        '502':
          description: The code could not be sent
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
  /user/{user_id}/contact_method/{contact_method_id}/verification/confirm:
    post:
      tags:
      - User Contact Methods
      summary: Confirm a contact method with the code sent to it
      operationId: confirm_contact_method_verification
      parameters:
      - name: user_id
        in: path
        description: User identifier
        required: true
        schema:
          type: string
          format: uuid
      - name: contact_method_id
        in: path
        description: Contact method identifier
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmContactMethodVerificationRequest'
        required: true
      responses:
        '200':
          description: Verified. Default high and low rules are added for urgencies the user has none for.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserContactMethodResponse'
        '400':
          description: Wrong code (`code_invalid`)
        '401':
          description: Missing or invalid authentication
        '403':
          description: Only the user or an admin may change a user's contact methods
        '404':
          description: Contact method not found
        '409':
          description: Too many wrong codes (`code_locked`), or no unexpired code was sent (`verification_not_pending`)
        '500':
          description: Internal server error
      security:
      - bearer_auth: []
    servers:
    - url: https://api.siteqwality.com
      description: Production
  /v1/me/contact-methods/{contact_method_id}/test:
    post:
      tags:
      - User Contact Methods
      summary: Send a test to one of your contact methods
      operationId: v1_test_contact_method
      parameters:
      - name: contact_method_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: Idempotency-Key
        in: header
        description: 'Makes a retry safe: the same key and body within 24 hours returns the first response with `Idempotent-Replayed: true`. The same key with another body is refused with 422 `idempotency_key_reused`, and one still running with 409 `idempotency_key_in_use`.'
        required: false
        schema:
          type: string
          maxLength: 255
      responses:
        '200':
          description: What the vendor answered; `result` says whether it arrived
          headers:
            Idempotent-Replayed:
              schema:
                type: string
              description: '`true` when this is the stored first response'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestSendReply'
        '401':
          description: Missing or invalid credentials
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Only a signed-in member tests their own contact methods
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: No such contact method of yours
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: The contact method is not verified
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '422':
          description: This contact method cannot be tested
          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:
    ConfirmContactMethodVerificationRequest:
      type: object
      required:
      - code
      properties:
        code:
          type: string
    ContactMethodVerificationSent:
      type: object
      description: A verification code is on its way.
      required:
      - expires_in_seconds
      - resend_after_seconds
      - code_length
      properties:
        expires_in_seconds:
          type: integer
          format: int32
          minimum: 0
        resend_after_seconds:
          type: integer
          format: int32
          minimum: 0
        code_length:
          type: integer
          format: int32
          minimum: 0
    UpdateUserContactMethodRequest:
      type: object
      description: The type is fixed; send a new method to change it.
      required:
      - details
      properties:
        details:
          description: 'Same shapes as create. SMS takes `{phone_number, country}` (ISO 3166-1 alpha-2),

            `{phone_number, country_code}`, `{e164}` or a `+` number.'
    UserContactMethodResponse:
      type: object
      required:
      - id
      - user_id
      - type
      - details
      - verified
      - created_at
      properties:
        id:
          type: string
          format: uuid
        user_id:
          type: string
          format: uuid
        type:
          $ref: '#/components/schemas/ContactMethodType'
        details:
          description: Stored details with a Slack DM token masked.
        verified:
          type: boolean
        created_at:
          type: string
          format: date-time
        integration_id:
          type:
          - string
          - 'null'
          format: uuid
          description: A Slack DM linked from `/oncall` sends through this Slack integration; no token is stored.
        linked_via:
          type:
          - string
          - 'null'
          description: The linked Slack integration's name, while it is connected.
    CreateUserContactMethodRequest:
      type: object
      required:
      - type
      - details
      properties:
        type:
          $ref: '#/components/schemas/ContactMethodType'
          description: '`method_type` is the field the dashboard used to send. Accept both so

            a stale client still creates a row the engine can page.'
        details:
          description: 'Email `{email}`, Slack DM `{slack_token, channel}`, SMS `{phone_number, country}`

            (ISO 3166-1 alpha-2), `{phone_number, country_code}`, `{e164}` or a `+` number.'
    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.
    ContactMethodType:
      type: string
      enum:
      - email
      - sms
      - phone_call
      - slack_dm
      - mobile_push
    TestResult:
      type: string
      enum:
      - delivered
      - failed
      - rejected
      - unsupported
      - not_found
    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
    LinkSlackAccountRequest:
      type: object
      description: Link a Slack account with the token from a `/oncall` link.
      required:
      - token
      properties:
        token:
          type: string
          description: The `token` query parameter of the "Link your Slack account" link.
    TestSendReply:
      type: object
      required:
      - result
      - latency_ms
      properties:
        result:
          $ref: '#/components/schemas/TestResult'
        destination:
          type:
          - string
          - 'null'
        vendor_status:
          type:
          - string
          - 'null'
        detail:
          type:
          - string
          - 'null'
          description: The vendor's reason or ours, never a credential.
        latency_ms:
          type: integer
          format: int64
          minimum: 0
        resolved:
          type:
          - boolean
          - 'null'
          description: 'Paging tests only: whether the test incident was closed again.'
  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