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

# Reject an invitation

> Declines a pending invitation on behalf of the invitee. The invitation becomes `rejected` and can no longer be
accepted: `init-otp`, `otp-auth` and `create-authenticators-otp` answer 409 for this user on this account, and
their live OTP sessions on it are invalidated. Only a `pending` invitation within its 7-day window can be
rejected.



## OpenAPI

````yaml /api-reference/openapi-integrator.json post /v1/submit/reject-invitation
openapi: 3.0.3
info:
  title: Byzantine Integrator API
  description: Byzantine REST API for integrators.
  license:
    name: ''
  version: 0.2.0
servers:
  - url: https://api.byzantine.fi
    description: Prod deployment
security: []
tags:
  - name: API health
    description: Check API status.
  - name: Customer management
    description: Endpoints to create, update, and retrieve customer information.
  - name: Account management
    description: Endpoints to manage accounts, bank accounts, invitations, and user roles.
  - name: Products
    description: Endpoints to get data about products and vaults.
  - name: Transactions
    description: Endpoints to create and manage transactions.
  - name: OTP authentication
    description: Endpoints to initialize and manage user authentication with OTP.
  - name: Events
    description: Endpoints to list lifecycle events.
  - name: Webhooks
    description: Integrator-managed outbound webhook subscriptions and delivery history.
  - name: Integrator key management
    description: >-
      Endpoints to inspect the current integrator credential scope, create,
      update and delete integrator keys.
paths:
  /v1/submit/reject-invitation:
    post:
      tags:
        - Account management
      summary: Reject an invitation
      description: >-
        Declines a pending invitation on behalf of the invitee. The invitation
        becomes `rejected` and can no longer be

        accepted: `init-otp`, `otp-auth` and `create-authenticators-otp` answer
        409 for this user on this account, and

        their live OTP sessions on it are invalidated. Only a `pending`
        invitation within its 7-day window can be

        rejected.
      operationId: reject_invitation
      parameters:
        - name: X-Pubkey
          in: header
          description: >-
            Integrator's ECDSA public key (P-256 curve, compressed SEC1 format).
            Example:
            0x038fedef7c12f93bbf342ad8943b7a825a3b41f61c9dc118b2c718efebabbf62fd
          required: true
          schema:
            type: string
        - name: X-Timestamp
          in: header
          description: >-
            Unix timestamp in seconds (UTC). Must be within tolerance window (1
            minute) to prevent replay attacks. Example: 1760375826
          required: true
          schema:
            type: string
        - name: X-Signature
          in: header
          description: >-
            ECDSA signature (DER-encoded, hex with 0x prefix). Signs the
            message: `{timestamp}{METHOD}{path_and_query}{json_body}`. Example:
            0x3045022100...
          required: true
          schema:
            type: string
      requestBody:
        description: The invitation to reject
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RejectInvitationRequest'
        required: true
      responses:
        '200':
          description: Invitation rejected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RejectInvitationResponse'
        '400':
          description: Invalid request payload
        '401':
          description: Unauthorized - Invalid credential or signature
        '403':
          description: Forbidden - Read-only credentials cannot reject invitations
        '404':
          description: Invitation not found
        '409':
          description: >-
            The invitation is not pending anymore (accepted, rejected, cancelled
            or expired)
        '500':
          description: Internal server error
      security:
        - integrator_auth: []
components:
  schemas:
    RejectInvitationRequest:
      type: object
      description: Request to reject an invitation on behalf of the invitee
      required:
        - invitationId
      properties:
        invitationId:
          $ref: '#/components/schemas/Uuid'
    RejectInvitationResponse:
      type: object
      description: The rejected invitation
      required:
        - invitationId
        - accountId
        - userId
        - status
        - rejectedAt
      properties:
        invitationId:
          $ref: '#/components/schemas/Uuid'
        accountId:
          $ref: '#/components/schemas/Uuid'
        userId:
          $ref: '#/components/schemas/Uuid'
        status:
          $ref: '#/components/schemas/InvitationStatus'
        rejectedAt:
          type: string
          format: date-time
    Uuid:
      type: string
      format: uuid
      description: A UUID string
      example: 550e8400-e29b-41d4-a716-446655440000
    InvitationStatus:
      type: string
      description: Status of an invitation.
      enum:
        - pending
        - accepted
        - rejected
        - cancelled
        - expired
      example: pending
  securitySchemes:
    integrator_auth:
      type: apiKey
      in: header
      name: X-Pubkey, X-Timestamp, X-Signature

````

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