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

# Launch a Credential Token for an owned credential

> Mints a fixed-supply B20 Asset representing a claim on the credential's future revenue. Charges the MAG3NT launch fee from the owner's own wallet (never the credential's holder). One CRT per credential; a second launch returns the existing one. Deploys on-chain synchronously when possible, else leaves it PENDING_DEPLOY for the deploy cron to retry.




## OpenAPI

````yaml /openapi.yaml post /api/cards/{id}/launch-crt
openapi: 3.1.0
info:
  title: mag3nt API
  version: '2026-07-16'
  description: >
    Payment infrastructure for AI agents. Issue virtual cards backed by
    credentials, pay for API access via x402/AP2/MPP protocols, and settle in
    USDC on Base. Also covers Native Token Rails membership and recurring
    billing agreements, ERC-20 project token registration (including B20) and
    prepaid MAG3NT fee metering for DIRECT (non-custodial) settlement, the
    credential marketplace and Credential Token (CT) markets, account-wide token
    holdings, and signed webhooks for payment and subscription lifecycle events.
  contact:
    name: mag3nt
    url: https://mag3nt.com
  license:
    name: Proprietary
    url: https://github.com/mag3nt-com/mag3nt-node/blob/main/LICENSE
servers:
  - url: https://mag3nt.com
    description: Production
  - url: https://staging.mag3nt.com
    description: Staging, Base mainnet
security:
  - ApiKeyAuth: []
tags:
  - name: Payments
    description: Universal outbound protocol payments
  - name: Cards
    description: Virtual payment card lifecycle
  - name: Keys
    description: Developer API key management
  - name: Funding
    description: Treasury deposits and balances
  - name: x402
    description: HTTP 402 payment protocol
  - name: AP2
    description: Agent-to-Agent Payment Protocol
  - name: MPP
    description: Micropayment Protocol with streaming
  - name: Pay Links
    description: Shareable payment URLs
  - name: Withdrawals
    description: Withdraw unspent funds back to wallet
  - name: Settlement
    description: On-chain settlement status
  - name: Webhooks
    description: Signed payment and subscription lifecycle notifications for sellers
  - name: Status
    description: System health and configuration
  - name: Membership
    description: Native Token Rails membership tiers, checkout, and auto-renew
  - name: Billing
    description: Recurring billing agreements funded by AP2 open mandates
  - name: Tokens
    description: >-
      Register an ERC-20 contract (including B20 tokens) for DIRECT credential
      settlement
  - name: Fees
    description: Prepaid MAG3NT fee meter for DIRECT settlement overage
  - name: Marketplace
    description: >-
      List and transfer credential businesses (proof of record) on the mag3nt
      marketplace
  - name: Credential Tokens
    description: Credential Token (CT) launch and Uniswap V4 markets
  - name: Holdings
    description: Account-wide Credential Token balances
externalDocs:
  description: mag3nt documentation
  url: https://docs.mag3nt.com
paths:
  /api/cards/{id}/launch-crt:
    post:
      tags:
        - Credential Tokens
      summary: Launch a Credential Token for an owned credential
      description: >
        Mints a fixed-supply B20 Asset representing a claim on the credential's
        future revenue. Charges the MAG3NT launch fee from the owner's own
        wallet (never the credential's holder). One CRT per credential; a second
        launch returns the existing one. Deploys on-chain synchronously when
        possible, else leaves it PENDING_DEPLOY for the deploy cron to retry.
      operationId: credentialTokensLaunch
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - symbol
                - supply
              properties:
                name:
                  type: string
                symbol:
                  type: string
                supply:
                  type: number
                revenue_share_bps:
                  type: integer
                  description: >-
                    Basis points of future revenue routed to CRT holders, capped
                    by an operator-tunable maximum.
                allocations:
                  type: array
                  description: >-
                    Must sum exactly to supply. Defaults to a single allocation
                    of the full supply to "creator".
                  items:
                    type: object
                    properties:
                      to:
                        type: string
                        description: >-
                          An EVM address or a known bucket label (creator,
                          treasury).
                      amount:
                        type: number
                decimals:
                  type: integer
                  default: 18
                fee_approve_tx:
                  type: string
                  description: >-
                    On-chain approve tx hash authorizing the treasury to pull
                    the MAG3NT launch fee, for external (non-managed) wallets.
      responses:
        '200':
          description: CRT launched (or PENDING_DEPLOY)
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  crt:
                    $ref: '#/components/schemas/CrtToken'
        '400':
          description: Invalid name/symbol/supply/allocations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: >-
            Insufficient MAG3NT to pay the launch fee, or payment
            required/invalid
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    example: INSUFFICIENT_MAG3NT
        '403':
          description: Credential not owned by caller
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Credential not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Credential is encumbered, already transferred, or fee payment is
            still pending
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
components:
  schemas:
    CrtToken:
      type: object
      description: >-
        A Credential Token (CT) - a fixed-supply B20 Asset claim on a
        credential's future revenue.
      properties:
        id:
          type: string
          example: crt_mag3nt_abc123
        cardId:
          type: string
        creator:
          type: string
        tokenAddress:
          type: string
          description: Empty until deployed on-chain.
        name:
          type: string
        symbol:
          type: string
        supply:
          type: number
        decimals:
          type: integer
        revenueShareBps:
          type: integer
        allocations:
          type: array
          items:
            type: object
            properties:
              to:
                type: string
              amount:
                type: number
        minter:
          type: string
          description: >-
            Always the platform distributor/operator, never the creator (no
            creator MINT_ROLE).
        status:
          type: string
          enum:
            - PENDING_DEPLOY
            - DEPLOYED
        deployTx:
          type: string
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Card not found
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key prefixed with 'Bearer sx_live_...'

````