GET
/
v2
/
functions
/
{owner_name}
/
{function_name}
curl --request GET \
  --url https://mango.sievedata.com/v2/functions/{owner_name}/{function_name} \
  --header 'X-API-Key: <api-key>'
{
  "name": "<string>",
  "owner_name": "<string>",
  "visibility": "<string>",
  "title": "<string>",
  "code_url": "<string>",
  "description": "<string>",
  "tags": [
    "<string>"
  ],
  "cover_image_url": "<string>",
  "examples": [
    "<string>"
  ],
  "readme": "<string>",
  "latest_version": {
    "id": "<string>",
    "build_status": "<string>",
    "queued_at": "2024-12-15T01:41:59.195000",
    "built_at": "2024-12-15T01:41:59.195000",
    "ready_at": "2024-12-15T01:41:59.195000",
    "compute_type": "<string>",
    "python_packages": [
      "<string>"
    ],
    "system_packages": [
      "<string>"
    ],
    "cuda_version": "<string>",
    "gpu": true,
    "split": 123,
    "minimum_replicas": 0,
    "maximum_replicas": 123,
    "inputs": [
      {
        "type": "<string>",
        "name": "<string>",
        "data": "<string>",
        "description": "<string>",
        "schema": {},
        "run_id": "<string>"
      }
    ],
    "outputs": [
      {
        "type": "<string>",
        "name": "<string>",
        "data": "<string>",
        "description": "<string>",
        "schema": {},
        "run_id": "<string>"
      }
    ],
    "current_workers": {
      "starting": 123,
      "setup": 123,
      "active": 123,
      "idle": 123,
      "awaiting_resources": 123
    },
    "environment_variables": [
      {
        "name": "<string>",
        "description": "<string>",
        "default": "<string>"
      }
    ],
    "stream_output": true,
    "function_dependencies": [
      "<string>"
    ]
  },
  "function_type": "function",
  "webhooks": [
    {
      "type": "job.start",
      "url": "<string>"
    }
  ],
  "restart_on_error": true
}

Authorizations

X-API-Key
string
header
required

The Sieve API key to authenticate with.

Path Parameters

owner_name
string
required

The owner of the function.

function_name
string
required

The name of the function.

Response

200
application/json
Successful Response
name
string
required

The name of the function.

owner_name
string
required

The owner name of the function

visibility
string | null

The visibility of the function. Omitted if truncate enabled.

title
string | null

The title of the function. Omitted if truncate enabled.

code_url
string | null

The link to the code of the function. Omitted if truncate enabled.

description
string | null

The description of the function. Omitted if truncate enabled.

tags
string[] | null

The tags of the function. Omitted if truncate enabled.

cover_image_url
string | null

The url of the function's cover image. Omitted if truncate enabled.

examples
string[] | null

An array of job ids that the function playground will use as an example. Omitted if truncate enabled.

readme
string | null

The readme of the function. Omitted if truncate enabled.

latest_version
object | null

The latest version of the function. Omitted if truncate enabled.

function_type
enum<string> | null

The type of the function, either a simple function or a workflow. Omitted if truncate enabled.

Available options:
function,
workflow
webhooks
object[] | null

The webhooks associated with the function. Omitted if truncate enabled.

restart_on_error
boolean | null

Whether to restart the function on job error. Omitted if truncate enabled.