This endpoint allows users to authenticate using their username and password. Depending on whether the user has Two-Factor Authentication (2FA) enabled, the authentication flow will vary:
1.
Without 2FA: Provide the username and password in the request. Upon successful authentication, the endpoint will return an authentication token to be used in subsequent requests.
2.
With 2FA:
First, provide the username and password in the request.
The endpoint will not return a token immediately. Instead, it will return an otp_session_state, which represents the current 2FA session.
Next, use the same endpoint (/auth/sign_in) with the following parameters: otp_attempt and otp_session_state.
Upon successful 2FA verification, the endpoint will return the authentication token.
Request
Query Params
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST '/auth/sign_in?username&password'