---
title: "Create Trial Account"
method: POST
path: "/v2/partner_company_creation"
tags: ["Account"]
---

# Create Trial Account

`POST /v2/partner_company_creation`

## Request

- Base URL: `https://api.7shifts.com`
- URL: `https://api.7shifts.com/v2/partner_company_creation`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://app.7shifts.com/oauth2/authorize`
    - Client credentials
    - Password
    - Token URL: `https://app.7shifts.com/oauth2/token`
  - API key in cookie `7session`
- TypeScript: <https://skmtc.dev/7shifts/apis/7shifts-api/docs/v2/partner_company_creation/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `x-api-version` string: An API version
- `x-company-guid` string, uuid

## Request body

- object
  - `email` string, required: The user's email
  - `firstname` string, required: The user's first name
  - `lastname` string, required: The user's last name
  - `company_name` string, required: The company's name
  - `country` 'CA' | 'US', required: The company's country
  - `mobile_phone` string: The user's mobile phone
  - `utm_campaign` string: The UTM campaign
  - `utm_content` string: The UTM content
  - `utm_medium` string: The UTM medium
  - `utm_source` string, required: The UTM source
  - `utm_term` string: The UTM term
  - `create_company_grant` boolean: If true, it will create a company grant for the calling OAuth client and the GUID returned in the response. If false, it will not create a company grant.

## Response `201`

Created

- object
  - `object` 'partner_company', required
  - `data` object, required
    - `company_id` integer, required: Company ID
    - `location_id` integer, required: Location ID
    - `user_id` integer, required: User ID
    - `company_grant_guid` string, nullable: Company grant GUID. If not requested, it will be null

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `422`: Unprocessable Entity
- `500`: Server Error

---

[API](https://skmtc.dev/7shifts/apis/7shifts-api.md) - [All operations](https://skmtc.dev/7shifts/apis/7shifts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/7shifts/apis/7shifts-api/revisions/40e0ef40dfcd?raw)
