> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.itential.com/servicenow-app/automation-get-token/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.com/_mcp/server. # automation-get-token > Returns the authentication token to be used in future requests to Itential using username and password. ## Purpose This automation **returns the token** to be used in future requests to Itential. Retrieves the username and password from the Itential Platform Instances Config Table. ### authentication-get-token API used: ``` /login ``` ### Input | Inputs | Data Type | Sample Input | Description | | -------------- | ----------------- | ------------------ | ----------------------------------- | | instance\_name | Dropdown (String) | SE Lab Prod 2023.1 | The Itential Platform instance name | ### Output | Output | Data Type | Sample Output | Description | | ------ | --------- | ------------------------------------ | ------------------------ | | token | String | 9f0999c2-7054-4820-8eeb-c3052d30acaa | The authentication token | ### Error Output | Error Output | Data Type | Sample Output | Description | | -------------- | --------- | ------------------- | ------------- | | error\_message | String | Invalid credentials | Error message | > Returns the authentication token to be used in future requests to Itential using username and password.