# Authorization

## Authorization Token&#x20;

<mark style="color:blue;">`GET`</mark> `https://{domain_name}/api_smsc/v1/auth`

This username and password you use here is the same as the login user/password on the portal.

#### Query Parameters

| Name       | Type   | Description                                                           |
| ---------- | ------ | --------------------------------------------------------------------- |
| user\_name | string | The API will do its best to find a cake matching the provided recipe. |
| password   | string | Whether the cake should be gluten-free or not.                        |

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

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

```
{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{    "message": "Ain't no cake like that."}
```

{% endtab %}
{% endtabs %}

```
curl -X POST "https://<your domain>/api_smsc/v1/auth" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"password\": \"xxxxx\", \"user_name\": \"xxxxxxxxx\"}"

```
