# Login ## Goal Log in and get your access token. ## Prerequisites - Your REST API app. - User ID, password, and organization ID from Integral. - Login URL. ## Steps ```mermaid flowchart TD LOGIN(Step 1: Call endpoint) --> KEY(Step 2: Get token) --> CALLS(Step 3: Include token in API calls) click LOGIN "#step-1-login" click KEY "#step-2-get-token" click CALLS "#step-3-put-your-token-in-all-request-headers" ``` ### Step 1: Login Use the [Login and get token](/openapi/integral-api-reference/rest/authentication-api/login) endpoint. ### Step 2: Get token Your access token is in `SSO_TOKEN` of the response header. Your token is valid for limited time. Response header example: ```json [ ... { "key": "Set-Cookie", "value": "SSO_TOKEN=hidH61Uy63IYT08avDFEUUrEO_Sn-BZ6yEqyON5SJS_h0gU8vOaNItVGllwHTH; Domain=.integral.com; Path=/", "description": "Sends cookies from the server to the user agent.", "enabled": true, "disableEdit": true, "info": "Sends cookies from the server to the user agent." }, { "key": "Set-Cookie", "value": "SSO_TOKEN=hidH61Uy63IYT08avDFEUUrEO_Sn-BZ6yEqyON5SJS_h0gU8vOaNItVGllwHTH; Path=/", "description": "Sends cookies from the server to the user agent.", "enabled": true, "disableEdit": true, "info": "Sends cookies from the server to the user agent." }, ... ] ``` ### Step 3: Put your token in all request headers Pass the `SSO_TOKEN` cookie value with all of your subsequent API requests.