v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_Functions

List Triggers

Returns a list of triggers associated with the current user and namespace. To get all triggers, send a GET request to /v2/functions/namespaces/$NAMESPACE_ID/triggers.

get/v2/functions/namespaces/{namespace_id}/triggers

Path parameters

namespace_idstring required

The ID of the namespace to be managed.

Response

An array of JSON objects with a key called namespaces. Each object represents a namespace and contains the properties associated with it.

Example response

{
  "triggers": [
    {
      "namespace": "fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "name": "my trigger",
      "function": "hello",
      "type": "SCHEDULED",
      "is_enabled": true,
      "created_at": "2022-11-11T04:16:45Z",
      "updated_at": "2022-11-11T04:16:45Z",
      "scheduled_details": {
        "cron": "* * * * *",
        "body": {
          "name": "Welcome to DO!"
        }
      },
      "scheduled_runs": {
        "last_run_at": "2022-11-11T04:16:45Z",
        "next_run_at": "2022-11-11T04:16:45Z"
      }
    }
  ]
}