# rxfoundry.clients.swifty_api.TokenApi All URIs are relative to */api* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_token_for_token**](TokenApi.md#get_token_for_token) | **POST** /swifty/1/token | Get a delegated token based upon an already authorized token # **get_token_for_token** > Token get_token_for_token(token=token) Get a delegated token based upon an already authorized token Creates a token for p2rx using an authenticated token from the user's frontend system. ### Example ```python import rxfoundry.clients.swifty_api from rxfoundry.clients.swifty_api.models.token import Token from rxfoundry.clients.swifty_api.rest import ApiException from pprint import pprint # Defining the host is optional and defaults to /api # See configuration.py for a list of all supported configuration parameters. configuration = rxfoundry.clients.swifty_api.Configuration( host = "/api" ) # Enter a context with an instance of the API client with rxfoundry.clients.swifty_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = rxfoundry.clients.swifty_api.TokenApi(api_client) token = rxfoundry.clients.swifty_api.Token() # Token | (optional) try: # Get a delegated token based upon an already authorized token api_response = api_instance.get_token_for_token(token=token) print("The response of TokenApi->get_token_for_token:\n") pprint(api_response) except Exception as e: print("Exception when calling TokenApi->get_token_for_token: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **token** | [**Token**](Token.md)| | [optional] ### Return type [**Token**](Token.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A token | - | **404** | No token found | - | [[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)