> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veilroute.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# sbsd

> POST /api/v1/sbsd on web.veilroute.dev

```http theme={null}
POST https://web.veilroute.dev/api/v1/sbsd
```

Builds the `sbsd` body that Akamai expects alongside the sensor on some sites. Read the values
from the page's bootstrap, send them here, and post the returned `body` to the site's sbsd endpoint.

> [!NOTE]
>
> This method is not tied to the hosted `/sensor` site list — you pass the values from the page, so
> the same endpoint serves `smiles.com.br` and `smiles.com.ar`. For Smiles Argentina, include the
> session's `userAgent` and the page `url`.

## Request

### Headers

**X-Api-Key** `string` *required*

Your Akamai Web API key.

**Content-Type** `string` *required*

Must be `application/json`.

### Body

**vid** `string` *required*

The `vid` value from the page (also accepted as `v`).

**t** `string`

The `t` token from the page, if present.

**bm\_o** `string` *required*

The `bm_o` value (also accepted as `sbsd_o` or `bm_so`).

**userAgent** `string`

The User-Agent of the session the cookies belong to. Recommended for Smiles Argentina.

**url** `string`

The page URL (for example `https://www.smiles.com.ar/`). Recommended for Smiles Argentina.

**language** `string`

The `Accept-Language` of the session (for example `pt-BR`).

**index** `number` (default: 0)

Call index, for when you send sbsd more than once on a page.

## Response

**body** `string`

The base64-encoded sbsd body. Post it to the site's sbsd endpoint.

**index** `number`

Echoes the request `index`.

**vid** `string`

Echoes the request `vid`.

```bash curl theme={null}
curl -X POST https://web.veilroute.dev/api/v1/sbsd \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $VEILROUTE_KEY" \
  -d '{"vid":"<vid>","bm_o":"<bm_o>","userAgent":"Mozilla/5.0 ...","url":"https://www.smiles.com.ar/","index":0}'
```

```json 200 OK theme={null}
{ "body": "MTt2aWQ7...", "index": 0, "vid": "<vid>" }
```

See [Errors](/errors) for non-`200` responses.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.