Vega
API Reference

Authentication

Obtain and revoke API tokens, and identify the current user.

All requests (except health checks) require a bearer token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

POST /auth

Authenticate with email and password credentials. Returns an API token and user object.

Request body

FieldTypeRequiredDescription
emailstringyesAccount email
passwordstringyesAccount password

Response

{
	"token": "...",
	"user": {
		"id": 123,
		"email": "user@example.com",
		"first_name": "Jane",
		"last_name": "Doe"
	}
}

GET /me

Return the currently authenticated user.

DELETE /auth

Revoke the current API token.

On this page