Skip to Content
The Ngamia platform API is in preview. Endpoints may change before general availability.
GuidesInvite your team

Invite your team

Owners and admins invite people with one-time codes. Only owners can invite admins.

curl -s https://api.ngamia.com/v1/invites -H "Authorization: Bearer $NGAMIA_TOKEN" \ -H 'content-type: application/json' \ -d '{"role":"developer","expires_in_hours":72,"max_uses":1}'
{"invite": {"id": "…", "role": "developer", "max_uses": 1, "uses": 0, "expires_at": "…"}, "code": "ngi_…"}

Share the code privately. It is shown once and stored only as a hash. Invites can last 1 to 720 hours and be used up to 1,000 times.

The invited person signs in with Camel Accounts and joins:

curl -s https://api.ngamia.com/v1/auth/join -H 'content-type: application/json' \ -d '{"provider_token":"<their camel token>","invite_code":"ngi_…"}'

They get a platform token with the invite’s role, or their existing role if it is higher.

Managing people

TaskCall
List membersGET /v1/members
Change a rolePUT /v1/members/{user_id} with {"role":"admin"}
Remove someoneDELETE /v1/members/{user_id}: access ends immediately
List invitesGET /v1/invites (codes are never shown again)
Revoke an inviteDELETE /v1/invites/{id}
See who did whatGET /v1/audit