> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Flow ## Article: Sample Flow ## Article Link: https://dev.wix.com/docs/api-reference/assets/http-functions/rest/sample-flow.md ## Article Content: # HTTP Functions: Sample Flow This article shows a sample flow that calls an HTTP function using the HTTP Functions API. ## Call your site's HTTP function We'll call the HTTP function defined in your site's code as follows: ```js import { ok } from "wix-http-functions"; export function get_respondOk(request) { return ok({result: 'Sending a successful response!' }); }; ``` 1. [Create](https://dev.wix.com/docs/rest/app-management/oauth-2/create-access-token.md), [request](https://dev.wix.com/docs/rest/app-management/oauth-2/request-an-access-token.md), or [refresh](https://dev.wix.com/docs/rest/app-management/oauth-2/refresh-an-access-token.md) an access token, or create an [API Key](https://dev.wix.com/docs/rest/articles/getting-started/api-keys.md#create-and-use-api-keys). 1. Construct the method URL using the function name defined in your site’s HTTP function in this format: `https://www.wixapis.com/velo/v1/http/invoke/{functionName}`. In our example, we'll use `https://www.wixapis.com/velo/v1/http/invoke/respondOk`. 1. Define your headers. You must include an `Authorization` header whose value is the access token or API key you retrieved earlier. Include any other headers your site’s HTTP function requires. Our example doesn't require any additional header. 1. Define your body, as required by your site’s HTTP function. The body must be a string. `GET` methods do not accept a body. Our example doesn't require a body. 1. Add query parameters to the method, as required by your site’s HTTP function. Our example doesn't require query parameters. 1. Choose the HTTP method, as defined in your HTTP function. In our case, the method is `GET`. 1. Call the method and handle the response.