Functions

Resolve function name for invocation

Changed on

Resolves a DNS-safe function name to its function ID and invocation URL within the caller's project.

SDKs use this endpoint internally to invoke by function name while routing by function ID. Invoke the returned invoke_url as-is. It does not share a domain with the API, so a host built from the API URL will not reach the function. When the deployment serves no public invocation domain, as in local development, invoke_url is omitted and callers invoke through POST /functions/{functionId}/invoke.

With Service Key:

  • Allowed

With Auth User Token:

  • Allowed for authenticated and public functions
  • A private function answers 404, exactly as a missing one

With Anon Key:

  • Requires anon key permission: functions.invoke
  • Function must have visibility: public; any other answers 404
get/functions/resolve

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Query parameters

name, string required

DNS-safe function name (lowercase letters, numbers, hyphens; cannot start or end with hyphen)

Response

Function resolved successfully

ResolveFunctionResponse required
name, string required

DNS-safe function name

function_id, string uuid required

Canonical function ID used for invocation routing

invoke_url, string

Canonical HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development; invoke through POST /functions/{functionId}/invoke instead.

cache_ttl_seconds, integer required

Suggested SDK cache TTL for this name-to-ID mapping

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    14 more changes in this revision