Skip to main content
POST
Create a partner organization

Prerequisites

The creating organization needs the CreateOrganizations entitlement. The API token needs organizations:create or admin scope. API token management also requires GitarAPI access. See Creating an API Token.

Signup offers

Use the offer code supplied for the partner integration, or omit offer_code for the standard trial. The trial starts when the new organization connects its first code host. Public signup offer codes are not accepted by this endpoint.

Repeated requests

Each successful request creates a separate organization, even when the email already belongs to a user. Retrying after a timeout or partial failure can create another organization. The recipient receives an email invitation to join the new organization as an administrator. The invitation expires after 30 days. The parent relationship records who created it and grants no access to the creating partner.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string
required
offer_code
string | null

Partner API offer code. Omit for the standard trial.

Response

Organization created

organization_id
string
required
organization_name
string
required
organization_slug
string
required
parent_organization_id
string
required