> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.etera.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.etera.dev/_mcp/server.

# Get complete user profile

GET https://api.etera.dev/account/profile/

Retrieve the complete user profile with all available fields including system information, verification status, and timestamps.

**Authentication Required:** Yes - Valid JWT token in Authorization header

**User Identification:** The system supports finding users by ID, email, or phone number from the authentication token.

**Response includes:**

* **Complete User Data**: All user fields from the database
* **System Information**: id, email, phoneNumber, verification status
* **Timestamps**: createdAt, updatedAt, lastLoginAt, lastLogoutAt
* **Status Information**: onboardingComplete, status, authMethod
* **Terms & Marketing**: termsAccepted, termsAcceptedAt, marketingAccepted, marketingAcceptedAt

**Usage:**

1. Generate a test token using the `/auth/generate-test-token` endpoint
2. Include the token in the Authorization header: `Bearer <token>`
3. Call this endpoint to retrieve the complete user profile

**Note:** This endpoint returns all available user data, unlike the basic profile endpoint which returns only essential fields. The system will automatically find the user by ID, email, or phone number from the token.

Reference: https://docs.etera.dev/platform/account/account-api/profile/get-profile

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.etera.dev/account` (Production, default)
- `https://api-stage.etera.dev/account` (Staging)
- `https://api-dev.etera.dev/account` (Development)

## Response

### 200

Complete user profile retrieved successfully

- `success` (boolean, optional)
- `data` (ProfileGetResponsesContentApplicationJsonSchemaData, optional)

## Errors

### 400 Bad Request Error

Bad Request - Invalid user identifier or malformed request

- `error` (string, optional)
- `message` (string, optional)
- `details` (string, optional)
- `statusCode` (double, optional)

### 401 Unauthorized Error

Unauthorized - Invalid or missing authentication token

- `error` (string, optional)
- `message` (string, optional)
- `details` (string, optional)
- `statusCode` (double, optional)

### 404 Not Found Error

Not Found - User not found

- `error` (string, optional)
- `message` (string, optional)
- `statusCode` (double, optional)

### 422 Unprocessable Entity Error

Unprocessable Entity - Validation error or data format issue

- `error` (string, optional)
- `message` (string, optional)
- `details` (string, optional)
- `statusCode` (double, optional)

### 500 Internal Server Error

Internal Server Error - Cache service error or unexpected system error

- `error` (string, optional)
- `message` (string, optional)
- `details` (string, optional)
- `statusCode` (double, optional)

### 503 Service Unavailable Error

Service Unavailable - Database connection issues

- `error` (string, optional)
- `message` (string, optional)
- `statusCode` (double, optional)

## Types

### ProfileGetResponsesContentApplicationJsonSchemaData

- `id` (string, optional)
- `email` (string, optional)
- `name` (string, optional, nullable)
- `firstName` (string, optional, nullable)
- `lastName` (string, optional, nullable)
- `phoneNumber` (string, optional, nullable)
- `phoneNumberVerified` (boolean, optional)
- `emailVerified` (boolean, optional)
- `image` (string, optional, nullable)
- `onboardingComplete` (boolean, optional)
- `language` (string, optional, nullable)
- `gender` (enum, optional, nullable)
  - Allowed values: `MALE`, `FEMALE`, `OTHER`
- `birthday` (string, optional, nullable)
- `nationality` (string, optional, nullable)
- `homeBase` (string, optional, nullable)
- `avatar` (string, optional, nullable)
- `authMethod` (string, optional)
- `status` (string, optional)
- `lastLoginAt` (string, optional, nullable)
- `lastLogoutAt` (string, optional, nullable)
- `createdAt` (string, optional)
- `updatedAt` (string, optional)

## Examples

**Response**

```json
{
  "success": true,
  "data": {
    "id": "string",
    "email": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "phoneNumber": "string",
    "phoneNumberVerified": true,
    "emailVerified": true,
    "image": "string",
    "onboardingComplete": true,
    "language": "string",
    "gender": "MALE",
    "birthday": "string",
    "nationality": "string",
    "homeBase": "string",
    "avatar": "string",
    "authMethod": "string",
    "status": "string",
    "lastLoginAt": "string",
    "lastLogoutAt": "string",
    "createdAt": "string",
    "updatedAt": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.etera.dev/account/profile/"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.etera.dev/account/profile/';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.etera.dev/account/profile/"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.etera.dev/account/profile/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.etera.dev/account/profile/")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.etera.dev/account/profile/', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.etera.dev/account/profile/");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.etera.dev/account/profile/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```