# Authorization

After obtaining your account's **API Token**, you should test your connection with our **whoami** endpoint.

{% hint style="info" %}
All requests made to Seliom's API should include the following headers:

* **Authorization:** your auth token.
* **X-Organization:** your organization's UUID.
* **Content-Type: a**pplication/json
  {% endhint %}

## Who Am I?

<mark style="color:blue;">`GET`</mark> `https://api.seliom.com/whoami`

This endpoint validates your API token and returns information about yourself.

#### Headers

| Name           | Type   | Description                                                   |
| -------------- | ------ | ------------------------------------------------------------- |
| Content-Type   | string | application/json                                              |
| X-ORGANIZATION | string | UUID of the organization for which you are making the request |
| Authentication | string | Your authentication token                                     |

{% tabs %}
{% tab title="200 Authorization successful." %}

```
{    
   "first_name": "Clark",    
   "last_name": "Kent",
   "organization": "Seliom"
}
```

{% endtab %}

{% tab title="401 You auth token or organization UUID is invalid." %}

```
{    
   "message": "Please log in to continue."
}
```

{% endtab %}
{% endtabs %}
