API v1 ReferenceLogin
User login
Authenticates the supplied credentials against Directus and issues a short-lived access token plus a refresh token. Supports both JSON API requests and form-based UI requests. For API usage, send Content-Type as application/json.
email*string
User's email address
Format
emailpassword*string
User's password
Format
passwordResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://app.orbiqhq.com/api/v1/login" \ -H "Content-Type: application/json" \ -d '{ "email": "alice@example.com", "password": "Passw0rd!" }'{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 3600,
"user": {
"id": "user-123",
"email": "alice@example.com",
"firstName": "Alice",
"lastName": "Smith",
"role": "admin",
"tenant": "tenant-456"
}
}{
"error": "Invalid request"
}{
"error": "Invalid email or password"
}{
"error": "Too many login attempts. Please try again later."
}{
"error": "Authentication service unavailable"
}How is this guide?