### Sign in with /v3/login Source: https://developer.bill.com/reference/api-reference-overview Use this cURL request to authenticate in the API sandbox environment. Ensure the content-type header is set to application/json. ```curl curl --request POST \ --url 'https://gateway.stage.bill.com/connect/v3/login' \ --header 'content-type: application/json' \ --data '{ "username": "{username}", "password": "{password}", "organizationId": "{organization_id}", "devKey": "{developer_key}" }' ``` -------------------------------- ### POST /v3/login Source: https://developer.bill.com/reference/api-reference-overview Authenticates a user with the BILL developer account to initiate an API session. ```APIDOC ## POST /v3/login ### Description Signs in to the BILL developer account to establish an API session. This is a prerequisite for performing further API operations. ### Method POST ### Endpoint https://gateway.stage.bill.com/connect/v3/login ### Parameters #### Request Body - **username** (string) - Required - The email address used to sign in to the BILL developer account. - **password** (string) - Required - The password for the BILL developer account. - **organizationId** (string) - Required - The unique alphanumeric ID of the BILL organization. - **devKey** (string) - Required - The developer key used to identify the developer account. ### Request Example { "username": "{username}", "password": "{password}", "organizationId": "{organization_id}", "devKey": "{developer_key}" } ### Response #### Success Response (200) - **sessionId** (string) - The generated session ID for the authenticated session. - **organizationId** (string) - The ID of the organization. - **userId** (string) - The BILL-generated ID of the signed-in user. - **trusted** (boolean) - Indicates if the session is trusted. #### Response Example { "sessionId": "{session_id}", "organizationId": "{organization_id}", "userId": "{user_id}", "trusted": false } ``` -------------------------------- ### API login response Source: https://developer.bill.com/reference/api-reference-overview The successful login response returns a sessionId, organizationId, and userId. The sessionId is required for subsequent API calls. ```json { "sessionId": "{session_id}", "organizationId": "{organization_id}", "userId": "{user_id}", "trusted": false } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.