> For the complete documentation index, see [llms.txt](https://eshop.gitbook.io/eshopbox-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eshop.gitbook.io/eshopbox-developers/setting/workspace/get-a-workspace.md).

# Get a workspace

## Get workspace

<mark style="color:blue;">`GET`</mark> `https://{{workspace}}.myeshopbox.com/api/v1/account/profile`

This endpoint allows you to get a workspace of a user

#### Headers

| Name           | Type   | Description                                            |
| -------------- | ------ | ------------------------------------------------------ |
| Authentication | string | <p>The Bearer token to grant <br>access to the API</p> |

{% tabs %}
{% tab title="200 Waorkspace detail successfully retrieved." %}

```
{
   "id": 5,
   "accountName": "Kapas Kraft",
   "accountSlug": "KapasKraft",
   "status": "1",
   "clientCode": "KKPL359",
   "addressLine1": "Khasra no 5 16 2 17",
   "addressLine2": "Gundavali, Bhiwandi",
   "city": "Bangalore",
   "state": "Karnataka",
   "pincode": "122018",
   "country": "IN",
   "email": "johndoe@gmail.com",
   "phone": "9451782453",
   "panNumber": "AAA6910ZZZ",
    "pancardScannedCopy": "https://storage.cloud.google.com/panCard.appspot.com/AAA6910ZZZ.pdf",
   "accountNumber": "1234567899746",
   "bankName": "India Bank",
   "ifscCode": "SIB0003246",
   "branch": "Sector 7, Gurgaon",
   "cancelledChequeScannedCopy": "https://storage.cloud.google.com/cheque.appspot.com/cheque.pdf",
   "contactPerson": "Ram Sharma",
   "gstin": "06ABCD1234E1Z1",
   "contractUrl": "https://storage.cloud.google.com/contract.appspot.com/contract.pdf",
   "stepsCompleted": 5,
   "userAccountMappingId": 356,
   "userAccountMappingStatus": "1",
   "userAccountMappingRole": "admin",
   "createdAt": "2019-04-08T12:41:05.000+05:30",
   "updatedAt": "2019-04-08T12:41:05.000+05:30"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X GET https://{{workspace}}.myeshopbox.com/api/v1/account/profile \    
 -H "Authorization: Bearer XXXX"
```

{% endtab %}
{% endtabs %}
