Tutorial: API Quickstart
Make your first API calls to the Ever Gauzy REST API.
Step 1: Get an Auth Token
curl -X POST http://localhost:3000/api/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "admin@ever.co",
"password": "admin"
}'
Response:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": { "id": "...", "email": "admin@ever.co" }
}
Save the token value for subsequent requests.
Step 2: List Employees
curl http://localhost:3000/api/employee \
-H "Authorization: Bearer YOUR_TOKEN"
Step 3: Create a Task
curl -X POST http://localhost:3000/api/task \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "My First API Task",
"status": "TODO",
"priority": "MEDIUM",
"projectId": "PROJECT_UUID",
"organizationId": "ORG_UUID",
"tenantId": "TENANT_UUID"
}'