Who can impersonate another tenant?
Tenant impersonation or login-as in a given tenant, can only be done by Partner type tenants.
Note: default tenant_id parameter
By default in all endpoints the tenant_id parameter you have to set, if you don't want to impersonate another tenant, is your tenant id retrieved from the /me endpoint.
How does impersonation work?
Assuming that the tenant performing the action is a partner, to impersonate another tenant you have to:
- Retrive the list of your customers from the Partner API section.
- Copy the returned id of the tenant you want to impersonate.
- Paste it into the path parameter tenant_id of the query you want to run.