/functions/{name}Get Function
Retrieves the full registry entry for a single named function in the specified project, including status, tier, runtime, version, source, deployed_at, and error_detail.
When status is error, error_detail contains a human-readable description of the deployment failure.
Requires PROJECT_ADMIN minimum.
| name * | path | The function's name. A module's operation is named |
| projectSlug * | path | The project's slug: the path segment after It is unique within the org. |
| HTTP | K9O Code | Description |
|---|---|---|
| 200 | Success | |
| 401 | K9O_INVALID_CREDENTIALS | The request credentials are missing or invalid. |
| 401 | K9O_SESSION_EXPIRED | Your session has expired; sign in again to continue. |
| 403 | K9O_ACCESS_DENIED | Your role does not grant access to read function details for this project. |
| 404 | K9O_FUNCTION_NOT_FOUND | No function with that name exists in this project, or it has been retired. |
| data * | object | A deployed function: its runtime, tier, version and status. |
| id * | string <uuid> | The function's id, a UUID. It stays the same across redeploys. |
| name * | string | The function's name. A module's operations are named |
| runtime * | "bun" | "rust" | "go" | "tinygo" | "zig" | "assemblyscript" | "c" | "cpp" | The language runtime: |
| tier * | "gateway" | "sandbox" | Where the function runs: |
| entryPoint * | string | The artifact key of the deployed code. |
| version * | string | The version label of the deploy. |
| status * | "deploying" | "active" | "error" | "retired" |
|
| source * | string | Who manages the function: |
| description * | any | What the function does. Null when none was given. |
| One of: string | ||
| or: null | ||
| createdAt * | string <date-time> | When the function was first deployed. |
| deployedAt * | any | When the current deploy became active. Null while it is deploying. |
| One of: string <date-time> | ||
| or: null | ||
| retiredAt * | any | When the function was retired. Null unless |
| One of: string <date-time> | ||
| or: null | ||
| errorDetail * | any | Why the deploy failed. Null unless |
| One of: string | ||
| or: null | ||
| meta * | any | |
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.functions.get('greet')Showing example in TypeScript
{
"data": {
"id": "string",
"name": "string",
"runtime": "bun",
"tier": "gateway",
"entryPoint": "string",
"version": "string",
"status": "deploying",
"source": "string",
"description": "string",
"createdAt": "string",
"deployedAt": "string",
"retiredAt": "string",
"errorDetail": "string"
}
}