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

# Accept a quote, matching the request.



## OpenAPI

````yaml /openapi.yaml post /rfq/accept
openapi: 3.1.0
info:
  title: Symbiosis API
  description: >-
    The Symbiosis REST API.


    ## Authentication


    Endpoints accept one of two credentials:


    - **Session token** — `Authorization: Bearer <token>`, from `POST
    /auth/login`.

    - **API key (HMAC)** — three headers on every request:
      - `APIKEY`: the API key id, from `POST /auth/api-keys`.
      - `X-Hmac-Timestamp`: current Unix time in milliseconds.
      - `X-Hmac-Signature`: Base64-encoded HMAC-SHA256 of
        `timestamp_ms "\n" METHOD "\n" PATH_AND_QUERY "\n" BODY`, keyed with the API key
        secret. `PATH_AND_QUERY` is the full request target including the query string.

    ## Wire formats


    Token amounts (`U256`) serialize in responses as 0x-prefixed hex strings;
    requests accept decimal strings, 0x-prefixed hex strings, or JSON numbers.
    Asset ids and addresses are 0x-prefixed hex strings. Prices are integers
    scaled by 1e6.
  version: 0.1.0
servers:
  - url: https://api.symbiosis.markets
security: []
tags:
  - name: auth
    description: Accounts, sessions, API keys, and websocket tickets.
  - name: custody
    description: Deposit addresses, balances, and withdrawals.
  - name: rfq
    description: Quote requests, quotes, and matching.
paths:
  /rfq/accept:
    post:
      tags:
        - rfq
      summary: Accept a quote, matching the request.
      operationId: accept_quote
      parameters:
        - in: header
          name: X-Hmac-Timestamp
          description: >-
            Unix milliseconds used in the signed message. Required with
            `APIKEY`.
          schema:
            type: string
          style: simple
        - in: header
          name: X-Hmac-Signature
          description: >-
            Base64 HMAC-SHA256 over `timestamp_ms \n METHOD \n PATH_AND_QUERY \n
            BODY`. Required with `APIKEY`.
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcceptQuoteBody'
        required: true
      responses:
        '200':
          description: no content
        '401':
          description: Invalid, missing, or mis-signed credentials.
        '403':
          description: Authenticated, but the credential lacks the required scope.
        '404':
          description: Unknown quote.
          content:
            text/plain; charset=utf-8: {}
        '409':
          description: The quote has expired or is no longer open.
          content:
            text/plain; charset=utf-8: {}
      security:
        - SessionBearer: []
        - ApiKeyHmac: []
components:
  schemas:
    AcceptQuoteBody:
      type: object
      properties:
        offer_id:
          $ref: '#/components/schemas/QuoteId'
      required:
        - offer_id
    QuoteId:
      type: string
      format: uuid
  securitySchemes:
    SessionBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Session token from `POST /auth/login`.
    ApiKeyHmac:
      type: apiKey
      in: header
      name: APIKEY
      description: >-
        API key id; must be accompanied by `X-Hmac-Timestamp` and
        `X-Hmac-Signature`. See the API description for the signing scheme.

````