Skip to main content

Vertical Taxonomy Translation

Audience

This API surface is for integration partners building on top of the Rokt network. Rokt ecommerce partners integrating placements on their own checkout should use the Rokt Ecommerce developer docs instead.

The Partnerships API accepts two kinds of category pair:

  • Rokt pairs. Rokt has its own taxonomy of ~24 verticals and ~152 sub-verticals. Every live Rokt sub-vertical works for every parent account with no setup. Send the Rokt vertical ID as the partner vertical ID and the Rokt sub-vertical ID as the partner sub-vertical ID. Get the IDs from GET /v1/partnership/vertical-mappings: they are the rows with source: "rokt".
  • Custom pairs. If your platform has its own taxonomy (MCC codes, category IDs, your internal scheme), Rokt can seed a mapping from each of your pairs to a Rokt sub-vertical. Custom pairs add to the Rokt pairs. They never replace them.

You can use both. A merchant can register with a Rokt pair while another uses one of your custom pairs.

Where translation happens: register and MCL PUTsDirect link to Where translation happens: register and MCL PUTs

The same set of pairs applies to two partner-facing call shapes, not just marketplace controls:

  • POST /v1/accounts/register/partnership: the vertical_id and sub_vertical_id fields on the request body must be a Rokt pair or a custom pair seeded for your platform_parent_account_id. If the pair is neither, register fails with 400 before the merchant is created: This vertical isn't mapped yet (vertical_id=1500, sub_vertical_id=1610). Contact smb-partnerships@rokt.com to have it mapped.
  • PUT /v1/partnership/accounts/{account_id}/marketplacecontrolslists: each {partnerVerticalId, partnerSubVerticalId} pair in blockedVerticals is resolved the same way. See Missing mapping = atomic 400.

A new custom pair works on both surfaces as soon as it is seeded.

note

Seeding is only for your own IDs. If you send Rokt pairs, there is nothing to seed.

Custom pairs are added by Rokt staff (or Rokt users with the seeding permission) through an admin-only POST /v1/partnership/vertical-mappings endpoint; creating rows is not exposed on the partner API surface. Before launch, email smb-partnerships@rokt.com the complete list of category and sub-category IDs and names in use across your entire merchant network: every {sub_vertical_id, name} pair, not a sample (a CSV export of your taxonomy is ideal). Rokt maps each of your categories to its own taxonomy and confirms when the mappings are live.

A custom pair can't reuse the IDs of a Rokt pair. The seed refuses one with 400 (PARTNERSHIP_VERTICAL_MAPPING_ROKT_PAIR). If an older custom row has the same IDs as a Rokt pair, it is not listed and has no effect: a Rokt pair always means the Rokt category.

Reading the result back is partner-callable. See Check what's mapped.

Check what's mappedDirect link to Check what's mapped

GET /v1/partnership/vertical-mappings returns every pair your parent account can use. Call it before your first register call, and again whenever you add categories on your side.

curl "https://accounts.rokt.com/v1/partnership/vertical-mappings?parent_account_id=$PARENT" \
-H "Authorization: Bearer $ROKT_TOKEN"

The response below shows one Rokt pair and one custom pair. A real response lists every Rokt pair. The IDs and names here are examples; read the real ones from the endpoint.

{
"status": 200,
"error": null,
"message": "ok",
"request_id": "0e3a1b9c-...",
"data": {
"vertical_mappings": [
{
"partner_vertical_id": 8,
"partner_vertical_name": "Travel",
"partner_sub_vertical_id": 801,
"partner_sub_vertical_name": "Airlines",
"vertical_name": "Airlines",
"source": "rokt",
"created_at": null
},
{
"partner_vertical_id": 1500,
"partner_vertical_name": "Apparel",
"partner_sub_vertical_id": 1610,
"partner_sub_vertical_name": "Womenswear",
"vertical_name": "Retail",
"source": "custom",
"created_at": "2026-07-01T00:00:00Z"
}
]
}
}

Any pair in this list is safe to send on register and on the marketplace-controls PUT. Anything absent returns a 400 on both.

  • source is rokt or custom.
    • rokt: one of Rokt's own categories. The partner IDs are Rokt's vertical and sub-vertical IDs, and the partner names are Rokt's names. created_at is null.
    • custom: a pair seeded for your parent account. The partner IDs and names are yours. created_at is when it was seeded.
  • Rokt pairs come first, ordered by Rokt vertical ID, then sub-vertical ID. Custom pairs follow, ordered by partner_vertical_id, then partner_sub_vertical_id.
  • vertical_name is the Rokt sub-vertical the pair resolves to. Display only; no endpoint takes it as input.
  • No pagination. The whole set comes back at once.
  • Auth is the same parent_account_id grant as GET /v1/partnership/accounts. You cannot read another platform's custom pairs.

The list is never empty, because the Rokt pairs are always there. If you use your own taxonomy and no source: "custom" rows come back, nothing is seeded for you yet. Email smb-partnerships@rokt.com your complete category list and wait for confirmation. Don't substitute a category the merchant isn't in to get past it.

Forward translation (on PUT)Direct link to Forward translation (on PUT)

The following excerpt shows the changed blockedVerticals entries in a marketplace-controls PUT. To preserve the merchant’s domain rules, include the full domains list from the GET in the actual PUT.

{
"blockedVerticals": [
{ "partnerVerticalId": 1500, "partnerSubVerticalId": 1610, "policy": "Block", "position1Policy": "Block" }
]
}

For each {partnerVerticalId, partnerSubVerticalId} pair, the server resolves a Rokt sub-vertical. A Rokt pair resolves to itself. A custom pair resolves through the row seeded for your platform_parent_account_id. Several pairs can resolve to the same Rokt sub-vertical. They share one effective control policy.

your pair                     resolves to
{ 8, 801 } Rokt pair ─▶ Rokt sub-vertical 801 (no setup)
{ 1500, 1610 } custom ─▶ the Rokt sub-vertical seeded for it
{ 1500, 1611 } custom ─▶ the Rokt sub-vertical seeded for it

Missing mapping = atomic 400Direct link to Missing mapping = atomic 400

If any pair in your blockedVerticals array is neither a Rokt pair nor a custom pair seeded for your parent account, the whole request rejects with 400. There are no partial writes; the request is atomic.

{
"status": 400,
"error": "BadRequest",
"message": "No vertical mapping found for the following partner vertical(s): (partner_vertical_id=1500, partner_sub_vertical_id=1610). Call GET /v1/partnership/vertical-mappings to see which verticals are currently mapped, and contact smb-partnerships@rokt.com to request additions. The MCL write was rejected atomically; no partial update was applied.",
"request_id": "req_01HX9F2J7M3K8N5VYBQZP4R6T2",
"data": null
}

The message names every unmapped pair, not just the first, so you can diff the whole set against what's mapped in one pass instead of bisecting your array.

warning

If you use your own taxonomy, send all of it before launch, not after. Email smb-partnerships@rokt.com the exhaustive list of category/sub-category IDs and names used anywhere in your merchant network: every {sub_vertical_id, name} pair, not just the ones you expect to launch with. Why exhaustive: a merchant registered under an ID that isn't mapped fails registration with a vertical-mapping 400, and merchants on unmapped categories would fall outside the brand-safety controls configured for your network. Adding custom pairs stays out-of-band; there's no self-serve creation route in the API, though you can read the current state any time. See Check what's mapped. If you send only Rokt pairs, skip this.

You can surface a 400 safely without committing by using dry_run=true. This is useful in your onboarding UI to validate a merchant's category selection before the real save.

Reverse translation (on GET)Direct link to Reverse translation (on GET)

When you GET marketplace controls, translated_verticals carries the effective policy of every pair you can use, keyed by the partner sub-vertical ID (vertical_id):

{
"account_id": "<your-account-id>",
"marketplace_controls_list": {
"marketplace_controls_list_id": "8c8e1c12-...",
"domains": [],
"content_hash": "h_abc123"
},
"translated_verticals": [
{
"vertical_id": 801,
"policy": "Allow",
"position_1_policy": "Allow"
},
{
"vertical_id": 1610,
"policy": "Block",
"position_1_policy": "Block"
}
]
}

Use translated_verticals in your UI. vertical_id is the partnerSubVerticalId you send on PUT. For a Rokt pair, that is the Rokt sub-vertical ID. For a custom pair, it is your sub-vertical ID, and the Rokt IDs it maps to are not returned.

tip

translated_verticals returns one entry per pair in the list, Rokt pairs and custom pairs, with its effective policy. That includes sub-verticals you didn't send on the PUT (they show as their current effective state). If two pairs resolve to the same Rokt sub-vertical, both entries show its effective policy. Changing that policy through either pair affects both.

On a new account, sensitive sub-verticals start as Block and the rest as Allow. To allow a sensitive one, send it with policy: "Allow".

Walkthrough: full round-tripDirect link to Walkthrough: full round-trip

  1. Update a pair and keep the merchant's domains

    Follow Updating Marketplace Controls to read the merchant's current settings. In the PUT, include only the verticals you are changing. To block a pair (for example, 1500 and 1610), send that pair in blockedVerticals and set both policies to Block. Copy the full domains list from the GET even when you change only verticals. Omitting domains or sending an empty list clears the merchant's saved domain rules.

    Send the GET's marketplace_controls_list.content_hash as contentHash so the service can detect a stale read. Without it, the service uses its own read and cannot check the freshness of yours. The hash check runs before the write, leaving a window for another edit. Coordinate writers for the same merchant so only one reads, builds, and sends an update at a time.

  2. Read the controls back

    Repeat the GET in the workflow and check that the saved domains match the list you sent. A matching readback confirms the saved list and can still miss an overwritten concurrent edit.

  3. Observe the translation round-trip

    The response carries:

    • translated_verticals[].vertical_id = 1610 (your sub-vertical ID, the partnerSubVerticalId you sent)
    • translated_verticals[].policy = "Block" and position_1_policy = "Block" (the effective state the server persisted)

    Render translated_verticals in your dashboard, with names from the list.

Pre-flight checklist before launchDirect link to Pre-flight checklist before launch

  • You've decided whether you send Rokt pairs, your own taxonomy, or both.
  • If you use your own taxonomy: you've sent smb-partnerships@rokt.com your complete category/sub-category list (every {sub_vertical_id, name} pair in use anywhere in your merchant network), and Rokt has confirmed the mappings are live.
  • You've called GET /v1/partnership/vertical-mappings against your parent account and the returned set covers every category you'll register merchants under. For your own taxonomy, the source: "custom" rows confirm that seeding landed. See Check what's mapped.
  • Your onboarding UI surfaces only pairs from the list (or uses dry_run=true to validate before letting the merchant save).
  • Your dashboard renders from translated_verticals.
  • If you use your own taxonomy, you have an internal owner who emails smb-partnerships the updated full list when it changes.
Was this article helpful?