API ReferenceAuthentication
Get current user profile
GET
/v1/auth/meAuthorization
bearer AuthorizationBearer <token>
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/auth/me"{ "success": true, "statusCode": 200, "message": "Request processed successfully", "timestamp": "2025-10-20T16:30:00.000Z", "path": "/v1/auth/register", "data": { "id": "user_123", "email": "user@example.com", "status": "ACTIVE", "organisation": { "id": "org_123", "name": "Acme Corp", "email": "contact@acme.com", "phone": "+1234567890", "logo": "https://example.com/logo.png", "address": "123 Main St, City, Country", "industry": "Technology", "type": "Corporation", "accessLevel": { "isCustom": true, "id": "level_abc123", "name": "Enterprise Plus", "cost": 50000, "features": { "maxApiCalls": 1000000, "maxUsers": 100 } }, "hasCustomFundingTier": true, "customTierMinCredits": 1000, "customTierMaxCredits": 1000000, "customTierMinCreditValue": 1, "customTierMaxCreditValue": 100, "customTierCreditCost": 5, "signupType": "Corporation", "isTenant": true, "tenantId": "tenant_123", "wasTenant": true }, "wallet": { "id": "wallet_123", "balance": 1000.5, "currency": "NGN", "status": "ACTIVE", "dailyLimit": 10000, "monthlyLimit": 100000, "minBalance": 100 }, "createdAt": "2025-10-20T12:00:00.000Z", "updatedAt": "2025-10-20T12:00:00.000Z" }}{ "success": false, "statusCode": 400, "message": "Validation failed", "errors": [ { "field": "email", "message": "Email must be a valid email address" } ], "timestamp": "2025-10-20T16:30:00.000Z", "path": "/v1/auth/register"}{ "success": false, "statusCode": 400, "message": "Validation failed", "errors": [ { "field": "email", "message": "Email must be a valid email address" } ], "timestamp": "2025-10-20T16:30:00.000Z", "path": "/v1/auth/register"}