Hosted authentication requires an email address, only Native authentication supports the usage of just a username, excluding the @email.address. If the account has a different username for SMTP this is also the route you must chose.
See https://developer.nylas.com/docs/api/v2/#post-/connect/authorize
You can get the token used for making app level changes via:
Authorization: Basic = echo -n "client_id:" | base64
curl --location 'https://ireland.api.nylas.com/connect/authorize' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic xxx' \
--header 'Cookie: __cf_bm=lZ3dFB_dWPVkS9_LmIKQ7xt4stQyPjt6nm1KCDhP2TQ-1691586307-0-AZIuigNufwIUeuesx8iTV8EsTRc46GwG587mkpxuXq6PWb9SPrZgxDcSrBavl/hXVpF80bDmtrwDoztMdB9+KR4=' \
--data-raw '{
"client_id": "3odbtm8lnwifwpgfq5wi0spjj",
"name": "Nyla the Cheetah",
"email_address": "imap-test@therebepirates.com",
"provider": "imap",
"settings": {
"imap_host": "mail.therebepirates.com",
"imap_port": 993,
"imap_username": "imap-test@therebepirates.com",
"imap_password": "xxx",
"smtp_host": "mail.therebepirates.com",
"smtp_port": 465,
"smtp_username": "imap-test@therebepirates.com",
"smtp_password": "xxx@!",
"ssl_required": true
}
}
'
This returns a code which you then need to swap for a token with https://developer.nylas.com/docs/api/v2/#post-/connect/token
We have no plans of integrating this with Hosted Authentication.
Updated
Comments
0 comments
Please sign in to leave a comment.