Skip to content

API Overview

The AuthStack API is a RESTful API that provides authentication services.

https://api.authstack.voostack.com

Most endpoints require authentication via Bearer token:

Authorization: Bearer <access_token>
MethodEndpointDescription
POST/auth/registerRegister a new user
POST/auth/loginLogin with email/password
POST/auth/google-loginLogin with Google
POST/auth/refresh-tokenRefresh access token
POST/auth/logoutLogout and revoke tokens
MethodEndpointDescription
GET/oauth/authorizeValidate authorization request
POST/oauth/authorizeCreate authorization code (requires auth)
POST/oauth/tokenExchange code for tokens
MethodEndpointDescription
GET/api/Users/meGet current user profile
PUT/api/Users/meUpdate current user
MethodEndpointDescription
GET/api/applicationsList all applications
GET/api/applications/{appId}Get application details
POST/api/applicationsCreate a new application
PUT/api/applications/{appId}Update an application
DELETE/api/applications/{appId}Delete an application

Webhooks are configured per-application. See Webhooks API for details.

MethodEndpointDescription
GET/api/applications/{appId}/webhooksList webhooks
POST/api/applications/{appId}/webhooksCreate webhook
PUT/api/applications/{appId}/webhooks/{id}Update webhook
DELETE/api/applications/{appId}/webhooks/{id}Delete webhook
GET/api/applications/{appId}/webhooks/eventsList available events

All requests should include:

Content-Type: application/json

Successful responses:

{
"accessToken": "eyJhbG...",
"refreshToken": "abc123...",
"expiresIn": 3600
}

Error responses:

{
"error": "Error message",
"code": "ERROR_CODE"
}
CodeDescription
200Success
201Created
400Bad Request
401Unauthorized
403Forbidden
404Not Found
500Server Error

API requests are rate limited:

  • 100 requests per minute per IP
  • 1000 requests per hour per user