Skip to content

Users

The Users endpoints allow you to retrieve and manage user account information.

Returns information about the currently authenticated user.

GET /v1/me

Requires BearerAuth (session token).

Terminal window
curl -X GET "https://api.veriglob.com/v1/me" \
-H "Authorization: Bearer your-session-token"

200 OK

{
"status": "success",
"message": "User retrieved successfully",
"data": {
"user_id": "user_abc123def456",
"email": "user@example.com",
"name": "John Doe",
"tier": "basic",
"created_at": "2024-01-01T00:00:00Z",
"last_login_at": "2024-01-20T14:30:00Z",
"stats": {
"dids_created": 5,
"credentials_issued": 12,
"presentations_created": 8,
"api_keys_active": 2
}
}
}
StatusDescription
401Invalid or missing session token

Updates the current user’s profile information.

PATCH /v1/me

Requires BearerAuth (session token).

FieldTypeRequiredDescription
namestringNoUser’s display name
emailstringNoUser’s email address
Terminal window
curl -X PATCH "https://api.veriglob.com/v1/me" \
-H "Authorization: Bearer your-session-token" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Doe"
}'

200 OK

{
"status": "success",
"message": "Profile updated successfully",
"data": {
"user_id": "user_abc123def456",
"email": "user@example.com",
"name": "Jane Doe",
"updated_at": "2024-01-21T10:00:00Z"
}
}
StatusDescription
400Invalid request body
401Invalid or missing session token
409Email already in use

Changes the current user’s password.

POST /v1/me/password

Requires BearerAuth (session token).

FieldTypeRequiredDescription
current_passwordstringYesCurrent password
new_passwordstringYesNew password (min 8 characters)
Terminal window
curl -X POST "https://api.veriglob.com/v1/me/password" \
-H "Authorization: Bearer your-session-token" \
-H "Content-Type: application/json" \
-d '{
"current_password": "current-secure-password",
"new_password": "new-secure-password"
}'

200 OK

{
"status": "success",
"message": "Password changed successfully",
"data": {
"changed_at": "2024-01-21T10:00:00Z"
}
}
StatusDescription
400Invalid password format or requirements not met
401Current password incorrect

Returns detailed usage statistics for the current user.

GET /v1/me/stats

Requires BearerAuth (session token).

Terminal window
curl -X GET "https://api.veriglob.com/v1/me/stats" \
-H "Authorization: Bearer your-session-token"

200 OK

{
"status": "success",
"message": "Statistics retrieved successfully",
"data": {
"period": "2024-01",
"dids": {
"total": 5,
"created_this_month": 2
},
"credentials": {
"total_issued": 12,
"issued_this_month": 4,
"total_revoked": 1,
"total_active": 11
},
"presentations": {
"total_created": 8,
"created_this_month": 3,
"total_verified": 15
},
"api_usage": {
"requests_this_month": 4521,
"requests_today": 245,
"rate_limit_hits": 0
},
"wallets": {
"total": 2,
"credentials_stored": 8
}
}
}