> For the complete documentation index, see [llms.txt](https://docs.terragon.io/documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.terragon.io/documents/terragon-api-document/profile.md).

# Profile

Player profile and account management

## Get Player Profile

> Retrieve the player's profile information.

```json
{"openapi":"3.0.0","info":{"title":"Terragon API Document","version":"1.0.0"},"tags":[{"name":"Profile","description":"Player profile and account management"}],"servers":[{"url":"https://api.terragon.io/player/api","description":"Staging server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"PlayerProfile":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"username":{"type":"string","description":"Player's username"},"email":{"type":"string","format":"email","description":"Player's email address"},"first_name":{"type":"string","description":"Player's first name"},"last_name":{"type":"string","description":"Player's last name"},"date_of_birth":{"type":"string","format":"date","description":"Player's date of birth"},"gender":{"type":"string","enum":["male","female","other"],"description":"Player's gender"},"address":{"type":"string","description":"Player's address"},"city":{"type":"string","description":"Player's city"},"country":{"type":"string","description":"Player's country"},"phone":{"type":"string","description":"Player's phone number"},"is_verified":{"type":"boolean","description":"Whether the player's account is verified"},"kyc_level":{"type":"integer","description":"Player's current KYC level"},"created_at":{"type":"string","format":"date-time","description":"Account creation timestamp"}}},"Error":{"type":"object","properties":{"message":{"type":"string","description":"Error message"}}}}},"paths":{"/v1/profile":{"get":{"tags":["Profile"],"summary":"Get Player Profile","description":"Retrieve the player's profile information.","operationId":"getPlayerProfile","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlayerProfile"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Update Player Profile

> Update the player's profile information.

```json
{"openapi":"3.0.0","info":{"title":"Terragon API Document","version":"1.0.0"},"tags":[{"name":"Profile","description":"Player profile and account management"}],"servers":[{"url":"https://api.terragon.io/player/api","description":"Staging server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"PlayerProfile":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"username":{"type":"string","description":"Player's username"},"email":{"type":"string","format":"email","description":"Player's email address"},"first_name":{"type":"string","description":"Player's first name"},"last_name":{"type":"string","description":"Player's last name"},"date_of_birth":{"type":"string","format":"date","description":"Player's date of birth"},"gender":{"type":"string","enum":["male","female","other"],"description":"Player's gender"},"address":{"type":"string","description":"Player's address"},"city":{"type":"string","description":"Player's city"},"country":{"type":"string","description":"Player's country"},"phone":{"type":"string","description":"Player's phone number"},"is_verified":{"type":"boolean","description":"Whether the player's account is verified"},"kyc_level":{"type":"integer","description":"Player's current KYC level"},"created_at":{"type":"string","format":"date-time","description":"Account creation timestamp"}}},"Error":{"type":"object","properties":{"message":{"type":"string","description":"Error message"}}},"ValidationError":{"type":"object","properties":{"message":{"type":"string","description":"Error message"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Validation errors by field"}}}}},"paths":{"/v1/profile":{"put":{"tags":["Profile"],"summary":"Update Player Profile","description":"Update the player's profile information.","operationId":"updatePlayerProfile","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","description":"Player's first name"},"last_name":{"type":"string","description":"Player's last name"},"gender":{"type":"string","enum":["male","female","other"],"description":"Player's gender"},"date_of_birth":{"type":"string","format":"date","description":"Player's date of birth"},"address":{"type":"string","description":"Player's address"},"city":{"type":"string","description":"Player's city"},"country":{"type":"string","description":"Player's country"},"phone":{"type":"string","description":"Player's phone number"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlayerProfile"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation errors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}}}}}}}
```
