GuidesAPI References
GuidesAPI References
  1. Authentication
  • Authentication
    • Obtain access token
      POST
    • Generate magic link
      POST
  • Manage tests
    • Generate draft test
      POST
    • Run CCSTest
      POST
    • Get CCSTest result
      GET
  • Schemas
    • TestResponse
    • PatientReport
    • ApiResponse
GuidesAPI References
GuidesAPI References
  1. Authentication

Generate magic link

POST
/api/auth/magic-links/generate
Generates magic link for currently authenticated user. Requires valid Bearer token in Authorization header. Returns magic link URL and expiration details.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or

Responses

🟢200OK
application/json
Magic link generated successfully for authenticated user. Use returned URL for authentication.
Body

🟠400Bad Request
🟠401Unauthorized
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.cardioexplorer.ai/api/auth/magic-links/generate' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "status": "success",
    "message": "Magic link generated successfully",
    "errors": null,
    "data": {
        "magicLink": "https://api.cardioexplorer.com/api/auth/magic-links/verify?token=generated_token",
        "message": "Magic link generated successfully",
        "expiresAt": "2024-01-25T11:30:00Z"
    }
}
Modified at 2026-01-28 13:23:30
Previous
Obtain access token
Next
Generate draft test
Built with