Skip to content

Get User Profile

GET
/api/v1/user/profile
curl --request GET \
--url https://indepai.app/api/v1/user/profile \
--header 'Authorization: Bearer <token>'

Get the authenticated user’s profile

User profile

Media typeapplication/json
object
success
required
boolean
data
required
object
id
required

User ID

string format: uuid
email
required

User email

string format: email
fullName
required

User’s full name

string | null
avatarUrl
required

Profile picture URL

string | null format: uri
subscriptionTier
required

Current subscription tier

string
Allowed values: free starter pro premium enterprise
subscriptionStatus
required

Subscription status

string
Allowed values: active trialing past_due canceled incomplete
trialEndsAt
required

Trial end date (if applicable)

string | null format: date-time
currentPeriodEnd
required

Current billing period end date

string | null format: date-time
createdAt
required

Account creation date

string format: date-time
updatedAt
required

Last profile update

string format: date-time
meta
required
object
timestamp
required

Timestamp in ISO 8601 format

string format: date-time
Example
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "user@example.com",
"fullName": "John Doe",
"subscriptionTier": "free",
"subscriptionStatus": "active",
"trialEndsAt": "2024-01-15T10:30:00Z",
"currentPeriodEnd": "2024-01-15T10:30:00Z",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z"
}
}

Unauthorized

Media typeapplication/json
object
success
required

Always false for error responses

boolean
error
required

Error type

string
code

Machine-readable error code

string
details

Detailed validation errors

Array<object>
object
path
required

Path to the invalid field

string
message
required

Error message

string
Example
{
"success": false,
"error": "Validation error",
"code": "VALIDATION_ERROR",
"details": [
{
"path": "currentAge",
"message": "Must be between 18 and 100"
}
]
}