---
title: "Link AWS Marketplace subscription to organization"
method: POST
path: "/api/{org_id}/aws-marketplace/link-subscription"
tags: ["AWS Marketplace"]
---

# Link AWS Marketplace subscription to organization

`POST /api/{org_id}/aws-marketplace/link-subscription`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/aws-marketplace/link-subscription`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/aws-marketplace/link-subscription/post.ts> (a function with typed inputs; its response is checked against the schema)

Exchanges AWS Marketplace token for customer info and creates pending subscription

## Path parameters

- `org_id` string, required

## Request body

- LinkSubscriptionRequest: Request payload for linking Azure Marketplace subscription
  - `token` string, required

## Response `200`

Success

- LinkSubscriptionResponse: Response from link-subscription endpoint
  - `customer_identifier` string, required
  - `message` string, nullable
  - `success` boolean, required

## Other responses

- `400`: Bad Request (token expired, invalid)
- `403`: Forbidden (not admin)
- `409`: Conflict (already subscribed)
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
