For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Account token

Securely access your token from a UbiFunction by selecting it in the panel dropdown and calling it with the _auth_token key from the args input argument. This avoids copying and pasting API tokens directly into your code.

For example:

function main(args) {
    token = args._auth_token;
    console.log(`The token selected is: ${token}`);
    return {}
}
def main(args):
    token = args["_auth_token"]
    print(f"The token selected is: {token}")
    return {}

Last updated

Was this helpful?