---
title: "Resolve function name for invocation"
method: GET
path: "/functions/resolve"
tags: ["Functions"]
---

# Resolve function name for invocation

`GET /functions/resolve`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/functions/resolve`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

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

## Query parameters

- `name` string, required

## Response `200`

Function resolved successfully

- ResolveFunctionResponse
  - `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

## Other responses

- `400`: Bad request - missing or invalid function name
- `401`: Unauthorized - invalid or missing token
- `403`: Forbidden - CORS blocked, or missing `functions.invoke` permission for anon key
- `404`: Function not found. Also returned for a `private` function with an auth user token, and a non-public one with an anon key. A durable function is never resolvable here: it is started through `POST /durable-functions/{functionId}/executions`, not invoked.

## Changes

- **2026-09-19** `3a6f365f3f35`: 5 breaking, 12 info
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `403`
  - …13 more
- **2026-08-27** `bb44e98aba2e`: 12 breaking, 4 warning
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `400`
  - the response's body type changed from `object` to no type for status `401`
  - the response's body type changed from `object` to no type for status `403`
  - …12 more
- **2026-07-27** `bb52784e098a`: 4 info
  - added the optional property `code` to the response with the `400` status
  - added the optional property `code` to the response with the `401` status
  - added the optional property `code` to the response with the `403` status
  - added the optional property `code` to the response with the `404` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/functions/resolve/get.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
