# EilamTest::AuthenticationApi All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**token_auth_post**](AuthenticationApi.md#token_auth_post) | **POST** /token-auth | | ## token_auth_post > token_auth_post(authentication) ### Examples ```ruby require 'time' require 'eilam_test' api_instance = EilamTest::AuthenticationApi.new authentication = EilamTest::Authentication.new # Authentication | begin result = api_instance.token_auth_post(authentication) p result rescue EilamTest::ApiError => e puts "Error when calling AuthenticationApi->token_auth_post: #{e}" end ``` #### Using the token_auth_post_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> token_auth_post_with_http_info(authentication) ```ruby begin data, status_code, headers = api_instance.token_auth_post_with_http_info(authentication) p status_code # => 2xx p headers # => { ... } p data # => rescue EilamTest::ApiError => e puts "Error when calling AuthenticationApi->token_auth_post_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **authentication** | [**Authentication**](Authentication.md) | | | ### Return type [**AuthResponse**](AuthResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: */*