# AutomationsApi

All URIs are relative to *https://v2.api.caraer.com*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getToken**](#gettoken) | **GET** /api/v2/automations/token | Get Latenode JWT token for current user|

# **getToken**
> ShowResponseMapStringString getToken()

Generates a short-lived Latenode JWT token for the authenticated user, to be used with the Latenode embedded SDK.

### Example

```typescript
import {
    AutomationsApi,
    Configuration
} from '@caraer/client';

const configuration = new Configuration();
const apiInstance = new AutomationsApi(configuration);

const { status, data } = await apiInstance.getToken();
```

### Parameters
This endpoint does not have any parameters.


### Return type

**ShowResponseMapStringString**

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Successfully generated token |  -  |
|**401** | Authentication is required or the token is invalid. |  -  |
|**403** | The caller is missing a required role or scope. |  -  |
|**404** | The requested resource was not found. |  -  |
|**500** | An internal server error occurred. |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

