---
title: "Create subscription for workspace"
method: POST
path: "/support/workspaces/{workspace_id}/sms"
tags: ["Subscriptions Support"]
---

# Create subscription for workspace

`POST /support/workspaces/{workspace_id}/sms`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/support/workspaces/{workspace_id}/sms`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Associate the workspace with chargebee subscription

## Path parameters

- `workspace_id` integer, required: Id of the workspace to work with

## Request body

- CustomerSchema: Subscription creation details
  - `first_name` string, nullable: First Name of the customer
  - `last_name` string, nullable: Last Name of the customer
  - `email` string, email, nullable: Email of the customer
  - `company_name` string, nullable: Company of the customer
  - `plan_id` string, required: Plan ID of the customer
  - `customer_id` string, nullable: ID of the customer

## Response `201`

Document created, URL follows

- JobSchema
  - `id` integer, required
  - `status` 'success' | 'failure' | 'processing' | 'error', required: Job status can be success, failure or processing
  - `response` object, required: Result of async task is stored in response
  - `last_updated_at` string, date-time, required: Job last updated at is the time when Job status was last updated
  - `created_at` string, date-time, required: Create at is time when async task was created
  - `path` string, required: API request path of the Job operation
  - `operation` string, required: Operation is async task name which Job is tracking

## Other responses

- `400`: Bad request syntax or unsupported method

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/4b2c943a00dc?raw)
