Applications
Add callback URI to application
Changed onAdds a callback URI to the specified Nylas application. Nylas uses callback URIs to redirect users to your project after they complete the authentication flow. If you don't specify a platform, Nylas defaults to web.
The OAuth protocol requires that you include the client_secret field for calls made to this endpoint, depending on the platform you define. If you're using OAuth 2.0 with PKCE and your platform is js, ios, android, or desktop, the client_secret field is not required.
post/v3/applications/redirect-uris
Request
- Base URLhttps://api.us.nylas.com
- AuthHTTP bearer
Request body
Example request
{
"id": "0556d035-6cb6-4262-a035-6b77e11cf8fc",
"url": "https://yourapp.com/callback"
}Response
Returns callback URI
Example response
{
"request_id": "5967ca40-a2d8-4ee0-a0e0-6f18ace39a90",
"data": {
"id": "0556d035-6cb6-4262-a035-6b77e11cf8fc",
"url": "https://yourapp.com/callback"
}
}Changes
- breaking
added the pattern
^[0-9]+$to the request property// - info
the
///response's property pattern^[0-9]+$was added for the status
- breaking