First integrationΒΆ

About 90 minutes. Train an API function, generate the SDK, deploy a server function that calls it, inject a Vari secret, run it.

  1. API key and SDK: Quickstart (Path A or Path B).

  2. Train an API function: * Python-first: Using Postman (use your instance host, not always na1). * OpenAPI: Using OpenAPI Specs. Pass --hostUrlAsArgument or --hostUrl. There is no python -m polyapi model.

  3. npx poly generate or python -m polyapi generate.

  4. Deploy a server function that calls poly.<context>.<name>(...): Server Functions.

  5. Store a credential in Vari. Secrets use .inject() inside the server function, not .get() on your laptop: Vari in Your Code.

  6. Run from the SDK and from PolyUI execute: PolyUI first 10 minutes.

Done when the server function returns the third-party response (or a clear error you can see in Logging).