Admin Customers
Issue an impersonation token for a customer
Returns a Sanctum customer token that the admin can use to act as the customer. The token expires in 1 hour and is audited as having been issued by the calling admin. No request body — the customer is identified by the path.
post/customers/{customerId}/impersonate
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
customerIdinteger required
Customer ID
Response
Impersonation token issued.
Changes
No recorded changes to this operation across all 8 revisions of this API.