GuidesAPI ReferenceChangelogAPI PolicyAPI StatusGusto Security
API Reference
v2023-09-01 is in the deprecation process and all prior versions have been deprecated. Click this banner to review our version upgrade guide.

Create a partner managed company

Create a partner managed company. When you successfully call the API, it does the following:

  • Creates a new company in Gusto
  • Creates a new user using the provided email if the user does not already exist.
  • Makes the user the primary payroll administrator of the new company.

In response, you will receive oauth access tokens for the created company.

IMPORTANT: the returned access and refresh tokens are reserved for this company only. They cannot be used to access other companies AND previously granted tokens cannot be used to access this company.

📘

System Access Authentication

this endpoint uses the Bearer Auth scheme with the system-level access token in the HTTP Authorization header

Body Params
user
object
required

Information for the user who will be the primary payroll administrator for the new company.

company
object
required
Headers
string
Defaults to 2024-04-01

Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.

Responses

Response body
object
string

Access token that can be used for OAuth access to the account. Access tokens expire 2 hours after they are issued.

string

Refresh token that can be exchanged for a new access token.

string

Gusto’s UUID for the company

integer

Time of access_token expiration in seconds

401

Authorization information is missing or invalid.

invalid_attribute_value, or the request fails due to an invalid_operation. See the Errors Categories guide for more details.

Language
Credentials