---
updatedAt: 2026-05-20T09:44:11.000Z
agentTools:
  projectIndex: https://developer.bitlabs.ai/llms.txt
---

# Get url for magic receipts

Get Magic Receipts URL returns the URL for the magic receipts iFrame.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "2.0.160",
    "title": "BitLabs Client API",
    "description": "BitLabs' public API to be integrated by our own products as well as publishers who desire maximum customization.\n",
    "contact": {
      "name": "BitLabs",
      "email": "contact@bitlabs.ai",
      "url": "https://bitlabs.ai"
    }
  },
  "servers": [
    {
      "url": "https://api.bitlabs.ai"
    }
  ],
  "security": [
    {
      "HeaderApiToken": [],
      "HeaderUserId": []
    },
    {
      "QueryApiToken": [],
      "QueryUserId": []
    },
    {
      "HeaderBearerToken": []
    }
  ],
  "tags": [
    {
      "name": "Internal - Not for publishers",
      "description": "Internal endpoints not to be used by publisher API integrations. Incorrect usage might lead to errors and bad\nuser experience.\n"
    }
  ],
  "paths": {
    "/v1/client/magic-receipts/url": {
      "get": {
        "description": "Get Magic Receipts URL returns the URL for the magic receipts iFrame.\n",
        "security": [
          {
            "HeaderApiToken": [],
            "HeaderUserId": []
          },
          {
            "QueryApiToken": [],
            "QueryUserId": []
          }
        ],
        "summary": "Get url for magic receipts",
        "tags": [
          "Internal - Not for publishers"
        ],
        "operationId": "getMagicReceiptUrl",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryTags"
          },
          {
            "$ref": "#/components/parameters/QueryBbTrack"
          }
        ],
        "responses": {
          "307": {
            "description": "Redirect"
          },
          "400": {
            "description": "Invalid `tags` or `bb_track`, or the currency display name is missing (`Please finish setting up the Currency in the Publisher Dashboard`).\n"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "HeaderApiToken": {
        "type": "apiKey",
        "name": "X-Api-Token",
        "in": "header",
        "description": "ApiToken of your BitLabs app."
      },
      "HeaderUserId": {
        "type": "apiKey",
        "name": "X-User-Id",
        "in": "header",
        "description": "Unique identifier of the user you are sending to BitLabs. These are passed back to you in callbacks to allow\nyou to identify your users. If possible, use UUIDs, numerical IDs or ASCII strings to avoid formatting issues.\nDo NOT use JWT or other sensitive tokens to identify your users. We only support up to 65 character long ids.\n"
      },
      "QueryApiToken": {
        "type": "apiKey",
        "name": "token",
        "in": "query",
        "description": "ApiToken of your BitLabs app."
      },
      "QueryUserId": {
        "type": "apiKey",
        "name": "uid",
        "in": "query",
        "description": "Unique identifier of the user you are sending to BitLabs. These are passed back to you in callbacks to allow\nyou to identify your users. If possible, use UUIDs, numerical IDs or ASCII strings to avoid formatting issues.\nDo NOT use JWT or other sensitive tokens to identify your users. We only support up to 65 character long ids.\n"
      },
      "HeaderBearerToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Enter the token with the `Bearer ` prefix, e.g. \"Bearer abcde12345\".\n"
      }
    },
    "parameters": {
      "QueryTags": {
        "name": "tags",
        "in": "query",
        "description": "Optional set of key-value pairs to be passed back in callbacks. Max 10 pairs with both key and value up to 50 characters long. Keys and values are trimmed and lower-cased. Keys can only contain alphanumeric characters and underscores. Values can contain any characters. If you need to pass sensitive information, note that users can potentially manipulate this data.\n",
        "required": false,
        "schema": {
          "type": "string",
          "format": "URL-encoded query",
          "example": "key1=value1&key2=value2"
        }
      },
      "QueryBbTrack": {
        "name": "bb_track",
        "in": "query",
        "description": "Optional cross-provider tracking token for analytics correlation (e.g. comma-separated amp:session_id,other:token). Max 512 characters.\n",
        "required": false,
        "schema": {
          "type": "string",
          "example": "amp:01HXJKP9VQCMZKZ"
        }
      }
    }
  }
}
```