Authentication
Authentication is the first step in the deep integration flow. Once users authorize your platform with Trade It, your server can request session URLs for connect and trade modals.
Before implementing OAuth, register your client in Trade It:
- Sign in at tradeit.app.
- Choose
Organizationon first login, or useRegister a Clientfrom your dashboard later. - Complete partner setup and billing in the partner portal.
- Save the
client_idand one-timeclient_secretshown after provisioning.
If you have questions or want to discuss your use case, contact us.
How OAuth Works (High Level)
- User clicks a "Connect Trade It" action in your app.
- User authenticates with Trade It and grants permission.
- Trade It redirects to your callback URL.
- Your server exchanges the authorization code for tokens.
- Your server stores Trade It access/refresh tokens for that user.
Once tokens are stored, you can launch embedded connect and trade flows.

What You Need to Implement
- A client-side "Connect Trade It" entry point.
- A callback route on your platform.
- A server-side code exchange using your
client_idandclient_secret. - Secure per-user storage for Trade It access and refresh tokens.
Notes
- Keep
client_secreton your server only. - Never exchange OAuth codes from client-side code.
- Session URL calls should always be server-side and use the user's Trade It token.