Free tool · no sign-up · runs locally

Target Delivery API request builder

Say which locations you want content for and who the visitor is. Copy the request as curl, JavaScript, Python or a Postman collection. The request is built in your browser and nothing is sent anywhere.

Built in your browser. This page only writes text. It sends nothing to Target or to us. It does not ask for your client code or any key: the client code stays the placeholder <clientCode>, which you replace on your own machine.

Locations to ask for

Each mbox gets an index, starting at 1, so you can match the answers to the requests.

A session ID is not a secret. Adobe asks that it stays the same for one visitor's session.

Mbox parameters

Sent with every location in this request. At most 50; orderId, orderTotal and productPurchasedIds are not allowed.

Profile parameters

Saved to the visitor's Target profile. Write the name without the profile. prefix.

Target Delivery API execute: mboxes

POST https://<clientCode>.tt.omtrdc.net/rest/v1/delivery?client=<clientCode>&sessionId=<session-id>

curl -X POST 'https://<clientCode>.tt.omtrdc.net/rest/v1/delivery?client=<clientCode>&sessionId=<session-id>' \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -d '{
  "context": {
    "channel": "web",
    "browser": {
      "host": "www.example.com"
    },
    "address": {
      "url": "https://www.example.com/"
    }
  },
  "execute": {
    "mboxes": [
      {
        "name": "homepage",
        "index": 1
      }
    ]
  }
}'

  • Replace https://www.example.com/ with the address of the page the visitor is on; Target uses it to match activities.
  • With no ID in the request, Target generates a tntId and returns it. Send that tntId, unchanged, on later calls for the same visitor.
  • The Delivery API takes no key or token: Adobe lists 'no authentication' as a known limitation. Do not put anything secret in a parameter.
  • Adobe says this API is for at.js and direct server-side implementations. A site on the Web SDK uses sendEvent instead.
  • Replace <session-id> with an ID you generate and keep for the visitor's session (Adobe: active for 30 minutes on the server).

Replace <clientCode> with your client code on your own machine. It is in the Target UI under Administration > Implementation.

How it works

What the builder writes

The address

A POST to https://clientCode.tt.omtrdc.net/rest/v1/delivery with the client code and a session ID in the query string, and the two headers Adobe's examples send.

Delivery API basics

The body

A context for the web channel with the page address and its host, an optional visitor ID and property token, and an execute or prefetch block with page load, named mboxes and, for prefetch, views.

Server-side and hybrid delivery

Five formats

curl for a terminal, fetch for JavaScript, requests for Python, the JSON body alone, and a Postman collection (v2.1) with the client code and session ID as empty variables.

If your site uses the Web SDK
  • Limits from Adobe's specification. At most 50 parameters, names up to 128 characters that do not start with profile., values up to 5000 characters, and the reserved order names refused.
  • Verified against the documented format. Checked on Adobe's Delivery API pages and OpenAPI specification on 13 November 2026. Not run against a live Target account.
  • No stored state. The page keeps nothing after you close the tab and has no field for a client code or a key.

Questions

Common questions

Does this page call Target?

No. The request is built in your browser and shown as text. Nothing is sent to Target or to us. You copy the snippet and run it yourself.

Where do I put my client code?

Not here. The snippets carry the placeholder <clientCode>, and the Postman collection has an empty clientCode variable. Replace it on your own machine. The client code is in the Target UI under Administration > Implementation.

Does the Delivery API need a key?

No. Adobe's API description lists as a known limitation that there is no authentication for Target Delivery APIs. That is also why nothing secret belongs in a parameter.

What was checked against Adobe's documentation?

The address and query parameters, the two headers, the context block for the web channel, the id block, the property token, execute and prefetch with page load, mboxes and views, and the limits on parameters. Each was read on Adobe's Delivery API pages and in Adobe's OpenAPI specification on GitHub on 13 November 2026.

What was not verified or is left out?

We did not send a request to a live Target account, so the builder is checked against the documented format only. Left out: the mobile channel, notifications, order and product objects, customer IDs, trace and QA mode, and the Edge Network endpoint that Web SDK sites use.

Are hostile values escaped?

Yes. The body is JSON with quotes and backslashes escaped; the angle brackets, the ampersand, the single quote and non-English letters are written as Unicode escapes, so a value cannot break out of the quotes in the curl, JavaScript or Python snippet. The session ID is percent-encoded in the address.

Sources

What the request format was checked against

Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. More answers: Adobe Target hub. To see which Adobe libraries a live site loads, use the tag, Web SDK and consent scan.

Surge Migrate

Moving the website itself

This builder writes API requests. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →