Automate project creation and developer invitations via API

In Xsolla business account, each game or product is configured as a separate project, and team members are granted access only to the projects they work on. If you frequently create projects and manage access permissions, you can automate this workflow using Xsolla API. This allows you to generate new projects in your account (under your merchant ID) and invite developers without manual intervention.
In Xsolla Publisher Account each game or product is configured as a separate project, and team members are granted access only to the projects they work on. If you frequently create projects and manage access permissions, you can automate this workflow using Xsolla API. This allows you to generate new projects in your account (under your merchant ID) and invite developers without manual intervention.

This is useful when:

  • You connect games from third-party developers to your platform and want each developer to manage only their own game.
  • You launch new games or products often and want to avoid manual setup.

Limitations:

  • Xsolla assigns invited developers the owner role on the new project only. It can’t be customized per individual API request. You can change the role later in Publisher Account in the Company settings > Users section.
  • Xsolla assigns invited developers the owner role on the new project only. It can’t be customized per individual API request. You can change the role later in your account in the Settings > Members section.
  • Xsolla assigns invited developers the owner role on the new project only. It can’t be customized per individual API request. You can change the role later in your account in the Settings > Members section.
  • Xsolla assigns invited developers the owner role on the new project only. It can’t be customized per individual API request. You can change the role later in your account in the Settings > Members section.
  • Xsolla assigns invited developers the owner role on the new project only. It can’t be customized per individual API request. You can change the role later in your account in the Settings > Members section.
  • Xsolla does not automatically delete projects created accidentally or via spam submissions. You can delete such a project yourself if you have the owner or developer role. If the project already has live transactions, it can’t be deleted. In this case, contact your Customer Success Manager.
Notice
To enable automated project creation and developer invitations via API, contact your Customer Success Manager or email [email protected].

How it works

To trigger automated project creation, send an API request containing the game title and the email of the developer who needs access.

For example, a developer submits their game details through an onboarding form. Your backend forwards the title and email to the Xsolla server. Xsolla then creates a project in your account and invites the developer by email.

Interaction flow:

  1. Your server gets a server token from Xsolla Login server.
  2. Your server sends Xsolla server a request with the game title and the developer’s email.
  3. Xsolla server accepts the request, creates the project, and invites the developer in the background.
  4. Your server polls the status endpoint until the request is done (optional).
  5. The developer receives an email: an invitation, or a notification if they already have projects in your account. If the developer already has the owner or developer role on all projects, no email is sent.
Notice

Invited developers are granted access only to the new project with the owner role. They receive no merchant-level permissions. They can manage the item catalog and promotions in this project but can’t refund payments.

If the developer already has access to projects in your account, the result depends on their current role:

  • If they have the owner or developer role on specific projects, they are added to the new project with no changes to their existing permissions.
  • If they are an owner or developer across all projects, they already have access, so nothing changes.
  • If they have any other role (e.g., finance or support), the invitation fails and they are not added.

Prerequisites

  1. Set up a server OAuth 2.0 client:
    1. Open your project in Publisher Account and go to the Players > Login section.
    2. Click Configure in the pane of a Login project.
    3. Go to the Security block and select the OAuth 2.0 section.
    4. Click Add OAuth 2.0 client.
    5. Specify the token lifetime.
    6. Check the Server (server-to-server connection) box.
    7. Click Connect.
    8. Copy and save the client ID and secret key.
  1. Set up a server OAuth 2.0 client:
    1. Open the project in your account and go to the Other tools > Login section.
    2. Click Configure in the pane of a Login project.
    3. Go to the Security block and select the OAuth 2.0 section.
    4. Click Add OAuth 2.0 client.
    5. Specify the token lifetime.
    6. Check the Server (server-to-server connection) box.
    7. Click Connect.
    8. Copy and save the client ID and secret key.
  1. Set up a server OAuth 2.0 client:
    1. Open the project in your account and go to the Players > Login section.
    2. Click Configure in the pane of a Login project.
    3. Go to the Security block and select the OAuth 2.0 section.
    4. Click Add OAuth 2.0 client.
    5. Specify the token lifetime.
    6. Check the Server (server-to-server connection) box.
    7. Click Connect.
    8. Copy and save the client ID and secret key.
  1. Set up a server OAuth 2.0 client:
    1. Open the project in your account and go to the Players > Login section.
    2. Click Configure in the pane of a Login project.
    3. Go to the Security block and select the OAuth 2.0 section.
    4. Click Add OAuth 2.0 client.
    5. Specify the token lifetime.
    6. Check the Server (server-to-server connection) box.
    7. Click Connect.
    8. Copy and save the client ID and secret key.
  1. Set up a server OAuth 2.0 client:
    1. Open the project in your account and go to the Players > Login section.
    2. Click Configure in the pane of a Login project.
    3. Go to the Security block and select the OAuth 2.0 section.
    4. Click Add OAuth 2.0 client.
    5. Specify the token lifetime.
    6. Check the Server (server-to-server connection) box.
    7. Click Connect.
    8. Copy and save the client ID and secret key.
Note
For detailed information, see OAuth 2.0 protocol and the Login API overview.
  1. Send the client ID to your Customer Success Manager and request to enable automated project creation and developer invitations via API.
Notice

Store the secret key on your server only.

If the key is compromised, rotate it immediately: generate a new secret key for your OAuth client in your account, update it on your server, and contact your Customer Success Manager.

To rotate the key as planned, follow the same steps. The client ID stays the same, so you don’t need to notify Xsolla.

Build onboarding flow using API

Get server token

Implement a call to Xsolla Login to get a server token. You need the token to authorize the requests that create projects and check their status. For detailed information about the call, see Generate JWT.

Request

Copy
Full screen
Small screen
1POST https://login.xsolla.com/api/oauth2/token
2Content-Type: application/x-www-form-urlencoded

Parameters:

ParameterTypeDescription
grant_type
stringPass client_credentials. Required.
client_id
stringID of your server OAuth 2.0 client. Required.
client_secret
stringSecret key of the same client. Required.

Example request:

Copy
Full screen
Small screen
1curl -X POST "https://login.xsolla.com/api/oauth2/token" \
2  -H "Content-Type: application/x-www-form-urlencoded" \
3  -d "grant_type=client_credentials" \
4  -d "client_id=<client_id>" \
5  -d "client_secret=<client_secret>"

Response

The response contains the token and its lifetime. For the complete list of response fields and error codes, see the Generate JWT description.

FieldTypeDescription
access_token
stringServer token (JWT).
token_type
stringToken type. The value is bearer.
expires_in
integerToken lifetime in seconds.

Pass the received token in the Authorization: Bearer <token> header of every request below. The token must:

  • Be issued by a client registered for your account.

  • Contain your merchant ID (publisher_id).

Submit project creation request

Implement a call that creates a project in your account and invites a developer to it. In the request body, pass the game title and the developer’s email.

Request

Copy
Full screen
Small screen
1POST https://api.xsolla.com/merchant/onboarding/submissions
2Authorization: Bearer <token>
3Content-Type: application/json

Parameters:

ParameterTypeDescription
game_title
stringThe project name. Up to 80 characters after trimming. Can’t contain <, >, control characters, or emoji. Required.
developer_email
stringA valid email address, up to 255 characters. Required.

Example request:

Copy
Full screen
Small screen
1curl -X POST "https://api.xsolla.com/merchant/onboarding/submissions" \
2  -H "Authorization: Bearer <token>" \
3  -H "Content-Type: application/json" \
4  -d '{"game_title": "My Game", "developer_email": "[email protected]"}'

Response

The response contains the ID of your request and its processing state:

FieldTypeDescription
request_id
integerRequest ID.
project_id
integer or nullID of the created project. null until the project is created.
state
stringCurrent state. For possible values, see Check request status.
done
booleantrue if processing is finished successfully.
duplicate
booleantrue if the request repeats an earlier one.
project_retained
booleantrue if the project exists but the invitation failed.

Example response (for 202 code):

Copy
Full screen
Small screen
1{
2  "request_id": 123456,
3  "project_id": null,
4  "state": "received",
5  "done": false,
6  "duplicate": false,
7  "project_retained": false
8}

Response codes:

CodeMeaningWhat to do
202The request is accepted and queued.Poll the status endpoint until done is true.
200The request was already submitted. It is queued again unless it has finished.Poll the status endpoint.
400Invalid input. The reason is in the response body.Fix the input. Don’t retry as is.
401The token is missing, invalid, or expired.Get a new token. If the error persists, check your OAuth client.
403The client isn’t registered for your account.Contact your Customer Success Manager.
429The limit of 20 new requests per 24 hours is reached.Retry later or ask your Customer Success Manager to raise the limit.
503The service is temporarily unavailable.Retry with exponential backoff.
Note
You can send up to 20 new requests within any 24-hour period for your account. Repeated requests and requests rejected with 400 don’t count. When the limit is reached, the API returns 429. To raise the limit, contact your Customer Success Manager.

Check request status

Implement a call that checks the status of a submitted request. Repeat it until done is true to know that the project is created and the developer is invited. This step is optional.

Request

Copy
Full screen
Small screen
1GET https://api.xsolla.com/merchant/onboarding/submissions/{request_id}
2Authorization: Bearer <token>

Parameters:

ParameterTypeDescription
request_id
integerRequest ID from the response to the submit request. Pass it in the URL path. Required.

Example request:

Copy
Full screen
Small screen
1curl -X GET "https://api.xsolla.com/merchant/onboarding/submissions/<request_id>" \
2  -H "Authorization: Bearer <token>"

Response

The response has the same fields as the response to the submit request. The state field takes these values:

StateMeaningWhat to do
receivedThe request is accepted and waits for processing.Keep polling.
project_creatingThe project is being created. The request is blocked from retrying so that a second project isn’t created.Check the request status again in a few minutes. If the state is still project_creating, contact your Customer Success Manager.
project_createdThe project is created, and the invitation is being sent.Keep polling.
invited (done: true)The project is created and the developer is invited.-
project_create_failedProcessing failed before the project was created.Send the same request again.
invite_failedThe project exists (project_retained: true), but the invitation failed.Send the same request again; only the invitation is retried. If it fails again, the developer probably has a role that conflicts with the invitation (see How it works). Contact your Customer Success Manager.

Example response:

Copy
Full screen
Small screen
1{
2  "request_id": 123456,
3  "project_id": 654321,
4  "state": "invited",
5  "done": true,
6  "duplicate": false,
7  "project_retained": false
8}

Response codes:

CodeMeaningWhat to do
200The request status is returned.Check the state and done fields.
401The token is missing, invalid, or expired.Get a new token. If the error persists, check your OAuth client.
403The client isn’t registered for your account.Contact your Customer Success Manager.
404The request isn’t found in your account.Check the request_id.

Troubleshooting

SymptomCauseSolution
Every request returns 403.The OAuth 2.0 client isn’t registered for your account.Contact your Customer Success Manager.
The token request is rejected.The client ID or secret key is wrong, or the secret key has been rotated.Check the credentials and use the current secret key.
429 after about 20 requests within 24 hours.The limit of 20 new requests per 24 hours is reached.Retry later or ask your Customer Success Manager to raise the limit. Each request stops counting toward the limit 24 hours after it was created, so capacity returns gradually.
503 persists.The service is temporarily unavailable.Retry later. If it persists, contact your Customer Success Manager.
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Last updated: November 20, 2026

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!
We couldn't send your feedback
Try again later or contact us at [email protected].