---
title: "Get WebCargo embed token"
method: POST
path: "/integrations/webcargo_embed/get_embed/v1/{task_group_id}"
tags: ["/integrations/webcargo_embed"]
---

# Get WebCargo embed token

`POST /integrations/webcargo_embed/get_embed/v1/{task_group_id}`

Generates a WebCargo Sky Embed token for a FLIGHT task group. Assembles cargo data from the task group's tasks and returns an embed URL for the booking widget. | (GetWebcargoEmbedReq) -> (WebcargoEmbedResponse)

## Path parameters

- `task_group_id` string, required

## Request body

- GetWebcargoEmbedReq
  - `origin` string, required
  - `destination` string, required
  - `departure` string, required
  - `country` string, required

## Response `200`

Successful Response

- WebcargoEmbedResponse — Response from POST /webcargoEmbed.
  - `access_token` string, required
  - `expires_in` integer, nullable
  - `url` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/chrt/apis/chrt-fastapi.md) · [All operations](https://skmtc.dev/chrt/apis/chrt-fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chrt/chrt-fastapi/revisions/ea04e157edb3/schema)
