Developer tools · MsConfirmationID.com

API documentation

Choose an API below. Open an endpoint for links and details.

Open these docs from your Telegram API menu for examples with your key filled in, or enter your key below.

REST API · Domain: https://msconfirmationid.com
Header: X-API-Key: YOUR_TOKEN. Reads use GET; actions use POST with Content-Type: application/json.

🔢 GetCID API

ACTION🔢 GetCID · generate

🔢 GetCID :- https://msconfirmationid.com/getcid-api/generate?iid=Your_IID_here&token=your_api_key_here

Example · Browser URL · GET · IID with hyphens

https://msconfirmationid.com/getcid-api/generate?iid=6407142-1898830-5913156-7151185-2805065-1745860-9354801-9089053-2803922&token=YOUR_TOKEN

Send a 54- or 63-digit IID and API key. No client reference is needed in Browser or REST calls. No charges for old/public CIDs or failed/blocked requests.

Example · REST · POST

curl -X POST "https://msconfirmationid.com/wp-json/tgbt-api/v1/getcid/generate" \
  -H "X-API-Key: YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"iid":"6407142-1898830-5913156-7151185-2805065-1745860-9354801-9089053-2803922"}'

Example response · success

Uses the sample IID above. This CID is illustrative, not an activation result. Billing and balances depend on your account.

{
    "success": true,
    "data": {
        "iid": "640714218988305913156715118528050651745860935480190890532803922",
        "cid": "111111-222222-333333-444444-555555-666666-777777-888888",
        "billing": "package",
        "balances": {
            "USD Wallet balance": "$47.000000",
            "GetCID_balance": 9,
            "shared_with_telegram": true
        }
    }
}

CID billing values

  • package: one purchased CID credit.
  • public_charged: public lookup succeeded and this account is configured to pay one CID credit.
  • database_charged: one CID credit for another user’s stored CID when free sharing is disabled.
  • public_free / database_free: no purchased CID credit used.
  • daily_free_paid: this bot/account’s rolling free paid-provider allowance was used.

The API key selects the bot and account; callers cannot change their scope with a bot_id parameter. With no available credit, a chargeable public or stored CID returns cid_package_required without delivering the CID. Telegram and API share the same account allowance. Optional entitlement_id selects one of your CID packages.

Example · IID without hyphens

Browser URL · GET

https://msconfirmationid.com/getcid-api/generate?iid=640714218988305913156715118528050651745860935480190890532803922&token=YOUR_TOKEN

REST · POST

curl -X POST "https://msconfirmationid.com/wp-json/tgbt-api/v1/getcid/generate" -H "X-API-Key: YOUR_TOKEN" -H "Content-Type: application/json" -d '{"iid":"640714218988305913156715118528050651745860935480190890532803922"}'

Both IID formats work: with hyphens, as shown above, or digits only. No request reference is needed.

READ💰 GetCID balance · balance

💰 GetCID balance :- https://msconfirmationid.com/getcid-api/balance?token=your_api_key_here

Example · Browser URL · GET

https://msconfirmationid.com/getcid-api/balance?token=YOUR_TOKEN

Shows your USD wallet balance and GetCID credits.

Example · REST · GET

curl "https://msconfirmationid.com/wp-json/tgbt-api/v1/getcid/balance" \
  -H "X-API-Key: YOUR_TOKEN"

Response fields: USD Wallet balance (USD amount), GetCID_balance (CID credits), shared_with_telegram.

READ🕘 GetCID history · history

🕘 GetCID history :- https://msconfirmationid.com/getcid-api/history?token=your_api_key_here

Example · Browser URL · GET

https://msconfirmationid.com/getcid-api/history?token=YOUR_TOKEN

Shows your last 50 CID requests, newest first.

Example · REST · GET

curl "https://msconfirmationid.com/wp-json/tgbt-api/v1/getcid/history" \
  -H "X-API-Key: YOUR_TOKEN"
Responses, limits & safe retries

Success: {"success":true,"data":{...}}. Failure: {"success":false,"error":{"code":"...","message":"..."}}. For history lookups, inspect the nested saved response too. Times are UTC; money uses decimal USD strings.

GetCID generation needs IID and API key, with optional entitlement_id; no client reference in Browser or REST calls. History shows your latest 50 requests.

200: read/success · 202: still processing/review · 400: input or service error · 401/403: key/access · 404: missing record/endpoint · 409: account busy or action conflict · 429: limit · 503: temporarily unavailable. A saved failed action may be returned inside a successful history lookup.

Limit: 30 requests/minute per account. OCR: 100/day. PID shares the bot’s daily quota. Purchases and deposit actions may return account_busy; retry those using the same ID.

Wallet and CID credits are shared with Telegram. For unique-decimal deposits, pay exactly the requested amount; payments are matched automatically. Payment IDs are only used when reference mode is enabled.

📷 OCR API

ACTION📷 Read Installation ID · recognize

📷 Read Installation ID :- https://msconfirmationid.com/ocr-api/recognize?image_url=Your_image_URL_here&token=your_api_key_here

Example · Browser URL · GET

https://msconfirmationid.com/ocr-api/recognize?image_url=https://msconfirmationid.com/wp-content/plugins/telegram-commerce-0.16.5/assets/ocr-sample.png&token=YOUR_TOKEN

Read an IID from a JPEG/PNG/WebP image, max 5 MB and 25 megapixels. Browser: image_url. REST also accepts image_base64 or multipart image. No client reference is needed. Each call runs OCR and uses daily allowance. Result: data.iid; no CID is generated.

Example · REST · POST

curl -X POST "https://msconfirmationid.com/wp-json/tgbt-api/v1/ocr/recognize" \
  -H "X-API-Key: YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://msconfirmationid.com/wp-content/plugins/telegram-commerce-0.16.5/assets/ocr-sample.png"}'
READ🕘 OCR history · history

🕘 OCR history :- https://msconfirmationid.com/ocr-api/history?token=your_api_key_here

Example · Browser URL · GET

https://msconfirmationid.com/ocr-api/history?token=YOUR_TOKEN

Shows your last 30 OCR requests, newest first.

Example · REST · GET

curl "https://msconfirmationid.com/wp-json/tgbt-api/v1/ocr/history" \
  -H "X-API-Key: YOUR_TOKEN"
Responses, limits & safe retries

Success: {"success":true,"data":{...}}. Failure: {"success":false,"error":{"code":"...","message":"..."}}. For history lookups, inspect the nested saved response too. Times are UTC; money uses decimal USD strings.

OCR needs only an image and API key. Each call runs OCR and consumes daily allowance; results are not replayed. After a timeout, inspect history before retrying.

200: read/success · 202: still processing/review · 400: input or service error · 401/403: key/access · 404: missing record/endpoint · 409: account busy or action conflict · 429: limit · 503: temporarily unavailable. A saved failed action may be returned inside a successful history lookup.

Limit: 30 requests/minute per account. OCR: 100/day. PID shares the bot’s daily quota.

Keep your API key and personalized links private.