One-Time Login Link
Generate a single-use login link that signs a member into HeyPeers without collecting their credentials. Links expire 5 minutes after issuance.
Endpoint
- POST:
/organizations/:id/users/:uuid/generate_otl_url
Request
| Field | Location | Required | Description |
|---|---|---|---|
Authorization | Header | ✅ | Bearer <token> from the Authentication endpoint. |
uuid | Path | ✅ | UUID of the member for whom you are generating the link. |
curl -X POST "https://heypeers.com/api/v2/organizations/{ORG_ID}/users/{USER_UUID}/one_time_login_link" \
-H "Authorization: Bearer {TOKEN}"Responses
| Status | Body |
|---|---|
200 OK | { "success": "OTL link generated", "otl_url": "[Generated One-Time Login URL]" } |
400 Bad Request | { "error": "[Error Message]" } |
Use the returned otl_url immediately—links expire after 5 minutes and cannot be reused.***
Last updated on