All endpoints are available via our REST API at https://api.authink.app/v1. Use these endpoints directly if you prefer not to use our SDK.
Authentication
Include your API key in the Authorization header:
Authorization: Bearer sk_live_...
Content-Type: application/json
Endpoints
POST
/v1/otp/send
Send an OTP code to an email address
POST
/v1/otp/verify
Verify an OTP code submitted by user
POST
/v1/magic-link/send
Send a magic link for passwordless login
POST
/v1/sessions/verify
Validate a session token
DELETE
/v1/sessions/:id
Revoke a specific session
GET
/v1/keys
List all API keys
POST
/v1/keys
Create a new API key
Error Responses
All errors return a consistent JSON structure:
{
error: {
code: 'rate_limit_exceeded',
message: 'Too many requests. Please try again in 60 seconds.',
status: 429,
retry_after: 60
}
}