post https://api.middesk.com/v1/affiliate/users
Allows grandparent account to create and invite users to existing parent accounts
User Roles
| Role | Permissions |
|---|---|
member | Can view content and access basic features |
developer | Has member permissions and access to tools such as API keys and webhooks |
admin | Has developer permissions and can invite new users |
Permission Hierarchy: admin > developer > member (each role inherits permissions from lower levels)
Getting the affiliate_account_id
The affiliate_account_id is the id field returned when creating a parent account via POST /v1/affiliate/accounts.
Example: After creating a parent account, use the returned id:
{
"id": "uuid-here", // ← This is your affiliate_account_id
"name": "Example Corp",
"status": "no_action_required"
}