Retrieve an access token to authenticate future requests. Multi-factor authentication (MFA) is required for all users; include the MFA token in the request.
Then send the token on later requests with header X-TGP-ACCESS-TOKEN (or parameter access_token).
You can also view your access token in Textline under Settings → Tools & Integrations → Developer API.
POST
/auth/sign_in.json
curl \
--request POST 'https://application.textline.com/auth/sign_in.json' \
--header "Content-Type: application/json" \
--data '{
"user": {
"email": "chuck@mycompany.com",
"password": "mypassword"
},
"api_key": "8a877f7d-b482-4ad0-9a71-be08c9ae1fb4",
"mfa_code": "654321"
}'
Request example
{
"user": {
"email": "chuck@mycompany.com",
"password": "mypassword"
},
"api_key": "8a877f7d-b482-4ad0-9a71-be08c9ae1fb4",
"mfa_code": "654321"
}
Response examples (200)
{
"mfa_verification_required": "true",
"email": "chuck@mycompany.com",
"delivery_method": "app",
"alternate_methods": {
"email": "true",
"sms": "true"
}
}