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

# Get Fee Claim Authorization

Generate an authorization signature to claim accumulated dev account fees from the vault contract.

<Warning>
  This endpoint creates a claim lock that expires after 30 seconds. If you don't use the signature in time, you'll need to request a new one.
</Warning>

## Authentication

This endpoint requires EIP-712 signature-based authentication via the `X-Dev-Auth` header.

<ParamField header="X-Dev-Auth" type="string" required>
  JSON-encoded authentication payload containing the signed message.
</ParamField>

### X-Dev-Auth Format

```json theme={null}
{
  "devAccountId": "your-dev-account-id",
  "action": "<action>",
  "expiry": 1734567890,
  "signature": "0x..."
}
```

The signature must be an EIP-712 typed data signature with:

* **Domain**: `{ name: "BisonDevAuth", version: "1" }`
* **Primary Type**: `DevAccountAuth`
* **Message Fields**:
  * `devAccountId` (string): Your dev account identifier
  * `action` (string): The action being performed (see endpoint docs)
  * `expiry` (uint256): Unix timestamp when signature expires (max 5 minutes in future)

The signature must be signed by the wallet associated with your dev account's `signerAddress`.

The `action` field must be `"fee-claim-authorization"` for this endpoint.

## Usage

After receiving the authorization, call `withdrawUSDC` on the vault contract with the returned parameters to claim your fees.


## OpenAPI

````yaml POST /dev/fee-claim-authorization
openapi: 3.0.0
info:
  version: 1.0.0
  title: Bison API
servers: []
security: []
paths:
  /dev/fee-claim-authorization:
    post:
      parameters:
        - schema:
            type: string
            description: >-
              JSON-encoded auth payload: { devAccountId, action, expiry,
              signature }. Signature is EIP-712 typed data signed by the dev
              account signer.
            example: >-
              {"devAccountId":"my-dev-account","action":"info","expiry":1734567890,"signature":"0x..."}
          required: true
          description: >-
            JSON-encoded auth payload: { devAccountId, action, expiry, signature
            }. Signature is EIP-712 typed data signed by the dev account signer.
          name: x-dev-auth
          in: header
      responses:
        '200':
          description: Fee authorization generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  uuid:
                    type: string
                    description: Unique authorization ID
                  signature:
                    type: string
                    description: EIP-712 signature for the authorization
                  expiresAt:
                    type: number
                    description: Unix timestamp when authorization expires
                  amount:
                    type: string
                    description: Fee amount to claim in µUSDC
                  chain:
                    type: string
                    description: Chain to claim on
                  signerAddress:
                    type: string
                    description: Address receiving the payout
                required:
                  - uuid
                  - signature
                  - expiresAt
                  - amount
                  - chain
                  - signerAddress
        '400':
          description: Bad request - no fees to claim or invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error

````