We’ve added three new endpoints to the Kinsta API that let you invite users to your company or specific WordPress sites and check which invitations are still pending.
You can send invitations to multiple email addresses in a single request, assign company or site roles, and retrieve pending invitations along with their assigned permissions.
These endpoints build on our recent Kinsta API user management updates, which introduced ways to retrieve existing users and change their company and site permissions.
Invite users to your company
The new Invite users to the company endpoint lets you invite people to join your company with a specified role.
It accepts an emails array containing one or more email addresses and a role field that determines the company-level permissions assigned to the invitees.
Three roles are supported:
company-admincompany-developercompany-billing
For example, you can invite two developers to your company with a single POST request:
curl --request POST \
--url https://api.kinsta.com/v2/company/{id}/company-invites \
--header 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
--header 'Content-Type: application/json' \
--data '{
"emails": [
"[email protected]",
"[email protected]"
],
"role": "company-developer"
}'
Make sure you replace {id} with your company ID. The API returns a 202 Accepted response with an operation ID:
{
"operation_id": "company:invite-users-to-company-c3d4e5f6-a7b8-4c9d-8e1f-2a3b4c5d6e7f",
"message": "Inviting users to company in progress",
"status": 202
}
The response confirms that the invitation request has been accepted for processing, rather than that the recipients have already joined your company.
You can track the operation using the returned operation_id and the Get operation status endpoint.
Invite users to specific WordPress sites
If someone only needs access to certain WordPress sites, you can use the new Invite users to sites endpoint instead.
Unlike company invitations, this endpoint lets you assign site-level permissions. It accepts an emails array and a site_capabilities array containing the sites and roles to assign.
Two site roles are supported: site-admin and site-developer.
For example, you can invite a developer and assign them the Site Developer role on one WordPress site:
curl --request POST \
--url https://api.kinsta.com/v2/company/{id}/site-invites \
--header 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
--header 'Content-Type: application/json' \
--data '{
"emails": [
"[email protected]"
],
"site_capabilities": [
{
"site_id": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"role": "site-developer"
}
]
}'
Each object in site_capabilities specifies a site_id and the role to assign. You can include multiple site assignments in the same request.
The API responds with an operation ID:
{
"operation_id": "company:invite-users-to-sites-d4e5f6a7-b8c9-4d0e-9f2a-3b4c5d6e7f80",
"message": "Inviting users to sites in progress",
"status": 202
}
For agencies managing multiple client websites, this endpoint lets you grant developers or collaborators access to the relevant sites without giving them company-wide permissions.
For example, an onboarding script could send site invitations with the appropriate roles when a new developer joins a project.
Check pending invitations
After sending invitations, you may want to check who has yet to accept them. The new Get list of company pending invites endpoint returns pending invitations for a company, including the recipient’s email address, invitation status, and assigned capabilities.
To retrieve the list, send a GET request with your company ID:
curl --request GET \
--url https://api.kinsta.com/v2/company/{id}/pending-invites \
--header 'Authorization: Bearer <YOUR_TOKEN_HERE>'
The response includes a pending_invitations array:
{
"company": {
"id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
"pending_invitations": [
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"email": "[email protected]",
"status": "pending",
"capabilities": [
{
"company_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
"site_id": null,
"role": "company-developer",
"type": "company"
}
]
}
]
}
}
Each invitation includes an id, email, status, and capabilities array. The capabilities indicate whether the invitation grants company-level or site-level access and which role has been assigned.
You can use this information to identify outstanding invitations and verify that the correct permissions were selected.
Add invitations to your user-management workflows
These endpoints let you handle invitations programmatically alongside the existing APIs for retrieving users and changing their permissions.
You can use them to invite team members during onboarding, assign access to client sites, and check outstanding invitations from your own tools.
See the Kinsta API documentation for the full request and response schemas.