TagMangoTagMango Docs
Mango

Get Mango thank-you page

GET
/api/v1/external/mangos/{mangoId}/thank-you-page

Returns the payment-success content configured for one owned Mango. Use this operation to render or inspect the current configuration; use Replace Mango thank-you page to create or change it.

The response contains sanitized display content and preserves the configured order of sections and redirect query parameters. Empty arrays remain empty, and nullable fields remain null rather than being omitted.

This read does not use cached validation results. Before returning, it resolves every stored redirect host and revalidates every stored image or video URL against the current public-HTTPS, redirect, extension, availability, and content-type rules. An unavailable media URL, or any stored external URL that no longer satisfies its applicable rules, makes the configuration unsafe and returns THANK_YOU_PAGE_UNSAFE_CONFIGURATION.

AuthorizationBearer <token>

In: header

Path Parameters

mangoId*string

The 24-character hexadecimal ID of the owned Mango addressed by this operation. Obtain it from List Mangoes or the result._id returned by Create Mango.

Header Parameters

x-whitelabel-host*string

Host name of the dashboard, ex: mydomain.tagmango.com

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api-prod-new.tagmango.com/api/v1/external/mangos/6a8ec3908384d1f9507e7c2c/thank-you-page" \  -H "x-whitelabel-host: string"
{
  "code": 200,
  "result": {
    "title": "Payment received",
    "content": "<p>Thanks for joining.</p>",
    "button": {
      "title": "Open community",
      "description": "Continue to your member space.",
      "url": "https://academy.example.com/community",
      "hidden": false
    },
    "sections": [
      {
        "type": "image",
        "title": "Next steps",
        "content": "<p>Download the guide and join the community.</p>",
        "assetUrl": "https://media.acmeacademy.com/workshop-schedule.webp"
      }
    ],
    "redirect": null
  },
  "type": "Success",
  "message": "Mango thank-you page fetched successfully",
  "statusMessage": "OK",
  "success": true
}
{
  "code": 400,
  "type": "Bad Request",
  "statusMessage": "BAD_REQUEST",
  "success": false,
  "message": "Invalid request",
  "result": "Invalid request"
}
{
  "code": 401,
  "type": "Unauthorized",
  "statusMessage": "UNAUTHORIZED",
  "message": "Invalid token",
  "result": "Invalid token",
  "success": false
}
{
  "code": 403,
  "type": "Forbidden",
  "statusMessage": "FORBIDDEN",
  "errorCode": "WORKSHOP_MANGO_FORBIDDEN",
  "message": "You can not access this api with a TagMango account, only available for whitelabel hosts",
  "result": "You can not access this api with a TagMango account, only available for whitelabel hosts",
  "success": false
}

{
  "code": 404,
  "type": "Not Found",
  "statusMessage": "NOT_FOUND",
  "errorCode": "MANGO_NOT_FOUND",
  "message": "No active Mango owned by the authenticated creator matches `mangoId`. Choose an owned Mango ID returned by [List Mangoes](https://docs.tagmango.com/docs/api-reference/mango/listMangoesByCreator).",
  "result": "No active Mango owned by the authenticated creator matches `mangoId`. Choose an owned Mango ID returned by [List Mangoes](https://docs.tagmango.com/docs/api-reference/mango/listMangoesByCreator).",
  "success": false
}

{
  "code": 409,
  "type": "Conflict",
  "statusMessage": "CONFLICT",
  "errorCode": "MANGO_THANK_YOU_PAGE_CONFLICT",
  "message": "More than one active thank-you-page configuration references this Mango. The API cannot choose one; stop retrying until the account data is repaired.",
  "result": "More than one active thank-you-page configuration references this Mango. The API cannot choose one; stop retrying until the account data is repaired.",
  "success": false
}

{
  "code": 429,
  "type": "Too Many Requests",
  "statusMessage": "TOO_MANY_REQUESTS",
  "message": "Request limit exceeded. try after 10 seconds",
  "result": "Request limit exceeded. try after 10 seconds",
  "success": false
}