13% of Part I
4 sub-topics · this deck covers sub-topic 2 of 4
↑ Module OverviewUnlike flows that start with an event tied to a connected app, an API Endpoint flow can be triggered at any time by an external client. When that client calls the designated endpoint, the flow executes and the client receives whatever output the flow produces.
The only requirement to invoke this flow type is that the external client calls the endpoint with valid security credentials. There are three ways to secure an API Endpoint flow, and the exam distinguishes between them.
The endpoint is secured using OAuth 2.0 for authorization of scoped access tokens. An admin adds the appropriate scopes to any app integration that needs to call the API.
This method supports the OAuth client credentials grant type using a private JSON Web Token (JWT). The flow triggers only after the Okta authorization server receives and approves the access token. Custom authorization servers aren't supported for this method.
Client token — the flow is registered as a webhook and secured through a unique client token. It's only accessible if the requesting service passes the correct client token through the invoke URL, which is constructed using a flow alias.
None (public service) — the flow is publicly available to anyone who has the invoke URL, which is also constructed using a flow alias.
API Endpoint flows are one of the "yellow zone" use cases called out under System Limitations (next sub-topic) — they carry specific timeout behavior (60 seconds synchronous, 120 seconds asynchronous) and are the exact scenario the platform's best practices for building flows are written around: structure asynchronously, close the connection early, and keep any synchronous path fast. The Execution History sub-topic is also how you'd confirm whether an API Endpoint flow ran in low-latency mode or was throttled.
Watch for this in your own sandbox run:
→ Assuming OAuth 2.0 securing works with a custom authorization server — it doesn't; only the built-in org authorization server is supported for this method.
→ Confusing the client-token method with the public method — both build their invoke URL from a flow alias, but only the client-token method actually requires a secret to be passed for access.
Sources: help.okta.com — ext-about-invoke-api-flow (Invoke an API endpoint flow)
Next: Sub-topic 3 →