Automatically create API Tokens

Hey everyone,

I’m developing some exposed API workflows on my application. I want said workflows to have security, so I wanted to do one of two things: either use Bubble’s native API Tokens or use my own tokens and have a condition check on every single workflow.

I know how to do the second option, but I’d really like if I could somehow automatically (for example, a trigger that happens whenever a new account is created) generate API tokens and assign them in the DB. Is this possible?

Yes on the external application you would have the user “link their account” by logging in once and having Bubble respond with the API key you then save for 1 year or 24 hours. This should help: Build a Rest API - #5 by chris.williamson1996

1 Like

Thanks!

2 Likes