---
title: "Get a Function"
method: GET
path: "/v1/functions/{function_id}"
tags: ["Functions"]
---

# Get a Function

`GET /v1/functions/{function_id}`

## Request

- Base URL: `https://api.dexto.ai`
- URL: `https://api.dexto.ai/v1/functions/{function_id}`
- Auth: HTTP bearer

Get a Function of the Cloud project and its newest deployments. Needs functions:read. A Function of another project is not found.

## Path parameters

- `function_id` string, required

## Response `200`

Successful response.

- object
  - `access` 'private' | 'public', required: Who can reach it: private by default; public only for intentional internet access.
  - `created_at` string, date-time, required
  - `id` string, uuid, required
  - `interfaces` object, required
    - `mcp` string, uri, nullable, required: Its MCP endpoint, when it publishes MCP.
    - `openapi` string, uri, nullable, required: Its OpenAPI document, when it publishes OpenAPI.
  - `object` 'function', required
  - `operations` string[], required: The operations it publishes as tools.
  - `production_deployment_id` string, uuid, nullable, required
  - `slug` string, required
  - `status` 'ready' | 'setup_required', required: setup_required until its production deployment has every required secret and its Dexto key.
  - `title` string, required
  - `updated_at` string, date-time, required
  - `url` string, uri, nullable, required: Where it is reached; null before production.
  - `deployments` object[], required: The Function's newest deployments, at most 20.
    - `created_at` string, date-time, required
    - `id` string, uuid, required
    - `object` 'function.deployment', required
    - `provider` 'aws-lambda' | 'cloudflare-workers' | 'local', required
    - `status` 'failed' | 'pending' | 'ready' | 'retired' | 'retiring', required
    - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid JSON or request fields.
- `401`: Missing or invalid API key.
- `402`: The account has insufficient credits.
- `403`: The account cannot perform this operation.
- `404`: The requested resource was not found.
- `409`: The request conflicts with existing resource state.
- `429`: The account exceeded this operation's request rate.
- `500`: Unexpected Dexto failure.
- `502`: The upstream model provider failed.
- `503`: A required Dexto service is temporarily unavailable.

---

[API](https://skmtc.dev/dexto/apis/dexto-api.md) - [All operations](https://skmtc.dev/dexto/apis/dexto-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dexto/apis/dexto-api/revisions/47eb880cffa5?raw)
