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
| Task | Call |
|---|---|
| List members | GET /v1/members |
| Change a role | PUT /v1/members/{user_id} with {"role":"admin"} |
| Remove someone | DELETE /v1/members/{user_id}: access ends immediately |
| List invites | GET /v1/invites (codes are never shown again) |
| Revoke an invite | DELETE /v1/invites/{id} |
| See who did what | GET /v1/audit |