Create Function Call

POST /humanlayer/v1/function_calls

Request approval to execute a function

Request Body

function_call
object

Response

function_call
object

Example Request

{
  "run_id": "run_123",
  "call_id": "call_456",
  "spec": {
    "fn": "send_email",
    "kwargs": {
      "to": "user@example.com",
      "subject": "Hello"
    },
    "channel": {
      "slack": {
        "channel_or_user_id": "C123456",
        "context_about_channel_or_user": "A channel w/ the SRE team"
      }
    }
  }
}