Call HTTP Functions

Calls an HTTP function defined on a site. Learn more about HTTP functions.

Requests to this endpoint must include an authorization header whose value is an access token or an API Key . If the site’s HTTP function requires other headers, include those as well.

The HTTP request method for the site’s HTTP function defines which HTTP method to use in your API call. For example, for the HTTP function get_myFunction, use the GET method.

Endpoint

https://www.wixapis.com/velo/v1/http/invoke/{functionName}

Path Params

NameTypeDescription
functionNamestringName of the site’s HTTP function without its method prefix. For example, for the HTTP function get_myFunction, use myFunction.

Body Params

Any body parameters supported by the site’s HTTP function.

Response Object

The response object from the site’s HTTP function.

Example: Call a GET HTTP function

HTTP function defined in http-functions.js in the site's backend:

Copy

API call to the HTTP function:

Copy
Did this help?