Hevn Inc Cards API

The Cards API from Hevn Inc — 28 operation(s) for cards.

Operations 32

POST /api/v1/cards/pre-approve Pre-approve card issuance #
POST /api/v1/cards/register Register user for card services #
PUT /api/v1/cards/phone Set phone number #
POST /api/v1/cards/phone/otp Send phone OTP #
POST /api/v1/cards/phone/otp/verify Verify phone OTP #
POST /api/v1/cards/kyc/link Get KYC verification link #
POST /api/v1/cards Issue new card #
GET /api/v1/cards Get user's cards #
GET /api/v1/cards/{card_id} Get card by ID #
DELETE /api/v1/cards/{card_id} Delete card #
POST /api/v1/cards/{card_id}/details Reveal full card details #
POST /api/v1/cards/{card_id}/freeze Freeze card #
POST /api/v1/cards/{card_id}/unfreeze Unfreeze card #
PUT /api/v1/cards/{card_id}/limit Set card limit #
PUT /api/v1/cards/{card_id}/label Set card label #
GET /api/v1/cards/withdrawals/pending List pending card withdrawals #
POST /api/v1/accounts/cards/pre-approve Pre-approve card issuance #
POST /api/v1/accounts/cards/register Register user for card services #
PUT /api/v1/accounts/cards/phone Set phone number #
POST /api/v1/accounts/cards/phone/otp Send phone OTP #
POST /api/v1/accounts/cards/phone/otp/verify Verify phone OTP #
POST /api/v1/accounts/cards/kyc/link Get KYC verification link #
POST /api/v1/accounts/cards Issue new card #
GET /api/v1/accounts/cards Get user's cards #
GET /api/v1/accounts/cards/{card_id} Get card by ID #
DELETE /api/v1/accounts/cards/{card_id} Delete card #
POST /api/v1/accounts/cards/{card_id}/details Reveal full card details #
POST /api/v1/accounts/cards/{card_id}/freeze Freeze card #
POST /api/v1/accounts/cards/{card_id}/unfreeze Unfreeze card #
PUT /api/v1/accounts/cards/{card_id}/limit Set card limit #
PUT /api/v1/accounts/cards/{card_id}/label Set card label #
GET /api/v1/accounts/cards/withdrawals/pending List pending card withdrawals #

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/hevn-inc-cards-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

hevn-inc-cards-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HEVN 2FA Cards API
  description: Backend API for HEVN mobile neobank
  version: 0.1.2
servers:
- url: https://api.hevn.finance
  description: Production
tags:
- name: Cards
paths:
  /api/v1/cards/pre-approve:
    post:
      tags:
      - Cards
      summary: Pre-approve card issuance
      description: Check Wirex KYC prerequisites and return a verification URL if all required user fields are present.
      operationId: pre_approve_cards_api_v1_cards_pre_approve_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardsPreApproveResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/register:
    post:
      tags:
      - Cards
      summary: Register user for card services
      description: Register user with card provider. Required before issuing cards.
      operationId: register_for_cards_api_v1_cards_register_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CardUserRegisterRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Register For Cards Api V1 Cards Register Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/phone:
    put:
      tags:
      - Cards
      summary: Set phone number
      description: Set user's phone number for verification.
      operationId: set_phone_number_api_v1_cards_phone_put
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetPhoneRequest'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/phone/otp:
    post:
      tags:
      - Cards
      summary: Send phone OTP
      description: Send SMS OTP to verify phone number.
      operationId: send_phone_otp_api_v1_cards_phone_otp_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendOtpResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/phone/otp/verify:
    post:
      tags:
      - Cards
      summary: Verify phone OTP
      description: Verify SMS OTP code and finalize phone number on the provider side.
      operationId: verify_phone_otp_api_v1_cards_phone_otp_verify_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyOtpRequest'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/kyc/link:
    post:
      tags:
      - Cards
      summary: Get KYC verification link
      description: Get link for user to complete KYC verification in browser.
      operationId: get_kyc_link_api_v1_cards_kyc_link_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KycLinkResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards:
    post:
      tags:
      - Cards
      summary: Issue new card
      description: Issue a new virtual or physical card. User must complete KYC first.
      operationId: issue_card_api_v1_cards_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/IssueCardRequest'
              - type: 'null'
              title: Data
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Cards
      summary: Get user's cards
      description: Sync cards from Wirex and return the list.
      operationId: get_cards_api_v1_cards_get
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardsListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/{card_id}:
    get:
      tags:
      - Cards
      summary: Get card by ID
      description: Get single card details.
      operationId: get_card_api_v1_cards__card_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Cards
      summary: Delete card
      description: Permanently delete (close) a card. This cannot be undone.
      operationId: delete_card_api_v1_cards__card_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/{card_id}/details:
    post:
      tags:
      - Cards
      summary: Reveal full card details
      description: Get full card number (PAN), CVV and expiry. Requires wallet signature for confirmation.
      operationId: reveal_card_api_v1_cards__card_id__details_post
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CardRevealRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardDetailsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/{card_id}/freeze:
    post:
      tags:
      - Cards
      summary: Freeze card
      description: Temporarily freeze a card. Can be unfrozen later.
      operationId: freeze_card_api_v1_cards__card_id__freeze_post
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/{card_id}/unfreeze:
    post:
      tags:
      - Cards
      summary: Unfreeze card
      description: Unfreeze a previously frozen card.
      operationId: unfreeze_card_api_v1_cards__card_id__unfreeze_post
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/{card_id}/limit:
    put:
      tags:
      - Cards
      summary: Set card limit
      description: Set daily spending limit for a card.
      operationId: set_card_limit_api_v1_cards__card_id__limit_put
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetCardLimitRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/{card_id}/label:
    put:
      tags:
      - Cards
      summary: Set card label
      description: Set or clear a user-defined label (nickname) for a card. Local-only, not sent to provider.
      operationId: set_card_label_api_v1_cards__card_id__label_put
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetCardLabelRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/cards/withdrawals/pending:
    get:
      tags:
      - Cards
      summary: List pending card withdrawals
      description: Proxy to Wirex `GET /api/v1/withdrawal/requests` — returns pending withdrawal requests for the authenticated user's card wallet. See https://docs.wirexapp.com/docs/withdrawals#querying-pending-withdrawals
      operationId: get_pending_withdrawals_api_v1_cards_withdrawals_pending_get
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendingWithdrawalsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/pre-approve:
    post:
      tags:
      - Cards
      summary: Pre-approve card issuance
      description: Check Wirex KYC prerequisites and return a verification URL if all required user fields are present.
      operationId: pre_approve_cards_package_alias_api_v1_accounts_cards_pre_approve_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardsPreApproveResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/register:
    post:
      tags:
      - Cards
      summary: Register user for card services
      description: Register user with card provider. Required before issuing cards.
      operationId: register_for_cards_package_alias_api_v1_accounts_cards_register_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CardUserRegisterRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Register For Cards Package Alias Api V1 Accounts Cards Register Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/phone:
    put:
      tags:
      - Cards
      summary: Set phone number
      description: Set user's phone number for verification.
      operationId: set_phone_number_package_alias_api_v1_accounts_cards_phone_put
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetPhoneRequest'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/phone/otp:
    post:
      tags:
      - Cards
      summary: Send phone OTP
      description: Send SMS OTP to verify phone number.
      operationId: send_phone_otp_package_alias_api_v1_accounts_cards_phone_otp_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendOtpResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/phone/otp/verify:
    post:
      tags:
      - Cards
      summary: Verify phone OTP
      description: Verify SMS OTP code and finalize phone number on the provider side.
      operationId: verify_phone_otp_package_alias_api_v1_accounts_cards_phone_otp_verify_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyOtpRequest'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/kyc/link:
    post:
      tags:
      - Cards
      summary: Get KYC verification link
      description: Get link for user to complete KYC verification in browser.
      operationId: get_kyc_link_package_alias_api_v1_accounts_cards_kyc_link_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KycLinkResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards:
    post:
      tags:
      - Cards
      summary: Issue new card
      description: Issue a new virtual or physical card. User must complete KYC first.
      operationId: issue_card_package_alias_api_v1_accounts_cards_post
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/IssueCardRequest'
              - type: 'null'
              title: Data
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Cards
      summary: Get user's cards
      description: Sync cards from Wirex and return the list.
      operationId: get_cards_package_alias_api_v1_accounts_cards_get
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardsListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/{card_id}:
    get:
      tags:
      - Cards
      summary: Get card by ID
      description: Get single card details.
      operationId: get_card_package_alias_api_v1_accounts_cards__card_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Cards
      summary: Delete card
      description: Permanently delete (close) a card. This cannot be undone.
      operationId: delete_card_package_alias_api_v1_accounts_cards__card_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/{card_id}/details:
    post:
      tags:
      - Cards
      summary: Reveal full card details
      description: Get full card number (PAN), CVV and expiry. Requires wallet signature for confirmation.
      operationId: reveal_card_package_alias_api_v1_accounts_cards__card_id__details_post
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CardRevealRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardDetailsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/{card_id}/freeze:
    post:
      tags:
      - Cards
      summary: Freeze card
      description: Temporarily freeze a card. Can be unfrozen later.
      operationId: freeze_card_package_alias_api_v1_accounts_cards__card_id__freeze_post
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/{card_id}/unfreeze:
    post:
      tags:
      - Cards
      summary: Unfreeze card
      description: Unfreeze a previously frozen card.
      operationId: unfreeze_card_package_alias_api_v1_accounts_cards__card_id__unfreeze_post
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/{card_id}/limit:
    put:
      tags:
      - Cards
      summary: Set card limit
      description: Set daily spending limit for a card.
      operationId: set_card_limit_package_alias_api_v1_accounts_cards__card_id__limit_put
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetCardLimitRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/{card_id}/label:
    put:
      tags:
      - Cards
      summary: Set card label
      description: Set or clear a user-defined label (nickname) for a card. Local-only, not sent to provider.
      operationId: set_card_label_package_alias_api_v1_accounts_cards__card_id__label_put
      security:
      - HTTPBearer: []
      parameters:
      - name: card_id
        in: path
        required: true
        schema:
          type: string
          title: Card Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetCardLabelRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/accounts/cards/withdrawals/pending:
    get:
      tags:
      - Cards
      summary: List pending card withdrawals
      description: Proxy to Wirex `GET /api/v1/withdrawal/requests` — returns pending withdrawal requests for the authenticated user's card wallet. See https://docs.wirexapp.com/docs/withdrawals#querying-pending-withdrawals
      operationId: get_pending_withdrawals_package_alias_api_v1_accounts_cards_withdrawals_pending_get
      security:
      - HTTPBearer: []
      parameters:
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PendingWithdrawalsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    KycLinkResponse:
      properties:
        link:
          type: string
          title: Link
      type: object
      required:
      - link
      title: KycLinkResponse
      description: KYC verification link.
    IssueCardRequest:
      properties:
        format:
          $ref: '#/components/schemas/CardFormat'
          default: virtual
      type: object
      title: IssueCardRequest
      description: Request to issue a new card.
    CardLimit:
      properties:
        dailyLimit:
          anyOf:
          - type: number
          - type: 'null'
          title: Dailylimit
          description: Daily spending limit (-1 for unlimited)
        dailyUsage:
          type: number
          title: Dailyusage
          description: Amount spent today
          default: 0
        monthlyLimit:
          anyOf:
          - type: number
          - type: 'null'
          title: Monthlylimit
          description: Monthly

# --- truncated at 32 KB (46 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/hevn-inc/refs/heads/main/openapi/hevn-inc-cards-api-openapi.yml