> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Function

> This endpoint gets a function

### Body

<ParamField body="id" type="string">
  This is the id of the function.
</ParamField>

### Response

<ResponseField name="id" type="string">
  This is the id of the function.
</ResponseField>

<ResponseField name="type" type="string">
  This is the type of the function.
</ResponseField>

<ResponseField name="name" type="string">
  This is the name of the function.
</ResponseField>

<ResponseField name="description" type="string">
  This is the description of the function.
</ResponseField>

<ResponseField name="created_at" type="string">
  This is the created\_at of the function.
</ResponseField>

<ResponseField name="updated_at" type="string">
  This is the updated\_at of the function.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --location --request GET 'https://api.stateset.com/v1/functions' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token <token>' \
  --data-raw '{
      "id": "2438cf38-4004-41d3-8c90-131735ff7d00"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
      "id": "2438cf38-4004-41d3-8c90-131735ff7d00",
      "type": "System Function",
      "name": "Function 1",
      "description": "This is the function",
      "created_at": "2023-11-28T00:00:00.000000Z",
      "updated_at": "2023-11-28T00:00:00.000000Z"
  }
  ```
</ResponseExample>
