# Validate API Key

| **API URL**         | {{url}}/fhir-user-service/api-key-managers/validate  |
| ------------------- | ---------------------------------------------------- |
| **Method**          | POST                                                 |
| **Request Headers** | Authorization : Bearer \[token]                      |
| **Description**     | Validates the given access key and secret access key |

#### **Input** <a href="#accountcreate-input" id="accountcreate-input"></a>

<table data-header-hidden><thead><tr><th width="233"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Field Name</strong></td><td><strong>Type</strong></td><td><strong>Example</strong></td></tr><tr><td>Authorization(Header)</td><td>String</td><td>Authorized token from login response</td></tr><tr><td>accessKeyId</td><td>String</td><td>assesskey ID of the user</td></tr><tr><td>secretAccessKey</td><td>String</td><td>secret access key of the user</td></tr></tbody></table>

#### **Sample Input:** <a href="#accountcreate-sampleinput" id="accountcreate-sampleinput"></a>

```postman_json
{
    "accessKeyId": "0ntqKl2UWat1J1JA8rAAFxWXshDSkT5kpHmW+drh2W+HbFiAqL6UGNdB88Kzcpy4maOEZ0J5eoq6nIVL",
    "secretAccessKey": "G7ibY6xTS1f1HHDmvgOGFnPmoNCXkHNrIKTqEexauzyM90AtMRqwVFAfqAzQjhS41rPeWpFhqRWyuioCnjkvbuCzEshWT7kPUqWHUv/vDxM7ChrCB6e2I8elAJutOj2JbYfb4ZhBkIeYUAfCloZqZ4zHw8FUwFPj"
}
```

#### **Sample Output:** <a href="#accountcreate-sampleoutput" id="accountcreate-sampleoutput"></a>

```
{
    "message": "The provided API key credentials are valid.",
    "entity": null,
    "status": true,
    "entityList": null,
    "responseCode": 200,
    "totalCount": null
}
```
