---
title: "Retrieve a Function"
method: GET
path: "/groups/{groupId}/apps/{appId}/functions/{functionId}"
tags: ["functions"]
---

# Retrieve a Function

`GET /groups/{groupId}/apps/{appId}/functions/{functionId}`

Retrieve a [Function](https://www.mongodb.com/docs/realm/functions#std-label-functions).

## Response `200`

The function was successfully retrieved.

- Function
  - `_id` string
  - `can_evaluate` object — A JSON expression that evaluates to `true` if the Function is allowed to run in response to an incoming request.
  - `name` string — A unique name for the Function.
  - `private` boolean — If `true`, the function is hidden from client applications. You can still call a private function from JSON expressions and other functions, including incoming webhooks and triggers.
  - `source` string — The stringified source code for the function. The code must be valid ES6.

---

[API](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/revisions/eb671cf4e125/schema)
