# OpenFunction Configuration

The `openfunction` plugin invokes synchronous OpenFunction endpoints with request forwarding, optional Basic credentials, and sub-path preservation.<!-- --> <!-- -->Configuration covers plugin parameters.

## Parameters[​](#parameters "Direct link to Parameters")

See plugin [common configurations](https://docs.api7.ai/apisix/reference/plugin-common-configurations.md) for configuration options available to all plugins.

* function\_uri

  string

  required

  ***

  URI of the synchronous OpenFunction endpoint. Wildcard route suffixes are appended to this URI. A pathless endpoint uses `/`; pathless support was introduced in API7 Enterprise 3.9.20 and 3.10.7, and in APISIX 3.19.0.

* authorization

  object

  ***

  Basic authentication added to the function request.

  * service\_token

    string

    ***

    Value encoded into the Basic `Authorization` header. It replaces any client-supplied Authorization header. When omitted, the client Authorization header is forwarded unchanged. API7 Gateway encrypts the value with AES at rest. APISIX encrypts it before etcd storage when field encryption is enabled.

* max\_req\_body\_size

  integer

  default: `67108864`

  valid value:

  greater than or equal to 1

  ***

  Maximum request body size buffered in memory. A larger body returns `400 Bad Request`. Introduced in API7 Enterprise 3.9.17 and 3.10.4, and in APISIX 3.18.0.

* timeout

  integer

  default: `3000`

  valid value:

  greater than or equal to 100

  ***

  Function request timeout in milliseconds.

* ssl\_verify

  boolean

  default: `true`

  ***

  If true, verify the function endpoint TLS certificate.

* keepalive

  boolean

  default: `true`

  ***

  If true, keep function connections alive for reuse.

* keepalive\_timeout

  integer

  default: `60000`

  valid value:

  greater than or equal to 1000

  ***

  Idle keepalive timeout in milliseconds.

* keepalive\_pool

  integer

  default: `5`

  valid value:

  greater than or equal to 1

  ***

  Maximum connections in the keepalive pool.
