# Get spot account

Manage your DeltaDeFi spot trading account. A spot account is required for trading and holds your encrypted operation key.

***

## Get spot account

> Get spot account details for a user

```json
{"openapi":"3.1.1","info":{"title":"Espresso API Server","version":"1.0"},"security":[{"ApiKeyAuth":[]}],"paths":{"/accounts/spot-account":{"get":{"description":"Get spot account details for a user","tags":["accounts"],"summary":"Get spot account","parameters":[{"schema":{"type":"string"},"description":"API Key","name":"X-API-KEY","in":"header","required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/espresso_internal_api_response.GetSpotAccountResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/espresso_internal_api_response.ErrorJSONWithCodeResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/espresso_internal_api_response.ErrorJSONWithCodeResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/espresso_internal_api_response.ErrorJSONWithCodeResponse"}}}}}}}},"components":{"schemas":{"espresso_internal_api_response.GetSpotAccountResponse":{"type":"object","properties":{"account_id":{"type":"string"},"account_type":{"type":"string"},"created_at":{"type":"string"},"encrypted_operation_key":{"type":"string"},"operation_key_hash":{"type":"string"}}},"espresso_internal_api_response.ErrorJSONWithCodeResponse":{"type":"object","properties":{"code":{"type":"integer"},"error":{"type":"string"}}}}}}
```

## Understanding Operation Keys

The operation key is a crucial security component:

* **Generated client-side**: Never sent to the server in plain text
* **Encrypted with your password**: Uses AES-GCM encryption
* **Used for signing trades**: Authorizes trading operations without your master wallet

{% hint style="warning" %}
The encrypted operation key is stored on DeltaDeFi's servers, but only you can decrypt it with your password. Never share your password or unencrypted operation key.
{% endhint %}
