> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Make API Call

- Component: `appmixer.surveymonkey.core.MakeApiCall`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.surveymonkey 1.0.0](https://connectors.appmixer.com/connector/appmixer.surveymonkey/1.0.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.surveymonkey/1.0.0/component/appmixer.surveymonkey.core.MakeApiCall>

Perform an arbitrary authorized call to the SurveyMonkey API v3 of the connected account, for operations without a dedicated component. The Authorization header is added automatically.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| API Endpoint Path (`url`) | text | A path on the SurveyMonkey API host of your account, including the API version, for example `/v3/surveys`. A full URL is accepted only when it points at that host (`https://api.surveymonkey.com`, or the EU or Canadian host for accounts in those data centers); any other host is rejected so your credential is never sent elsewhere. |
| HTTP Method (`method`) | select | The HTTP method for the API call. |
| Query Parameters (`parameters`) | key-value | Optional query parameters, for example `per_page`. |
| Request Body (`body`) | textarea | Optional JSON request body, for example `{"title": "My Survey"}`. |
| Request Headers (`headers`) | key-value | Optional additional headers. The Authorization header is set automatically. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Status Code (`statusCode`) | integer | - |
| Response Headers (`headers`) | object | - |
| Response Body (`body`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.surveymonkey.core.MakeApiCall",
  "label": "Make API Call",
  "description": "Perform an arbitrary authorized call to the SurveyMonkey API v3 of the connected account, for operations without a dedicated component. The Authorization header is added automatically.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:surveymonkey",
    "scope": [
      "users_read",
      "surveys_read",
      "surveys_write",
      "collectors_read",
      "collectors_write",
      "contacts_read",
      "contacts_write",
      "responses_read",
      "responses_read_detail",
      "webhooks_read",
      "webhooks_write"
    ]
  },
  "quota": {
    "manager": "appmixer:surveymonkey",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE"
            ]
          },
          "headers": {
            "type": "string"
          },
          "parameters": {
            "type": "string"
          },
          "body": {
            "type": "string"
          }
        },
        "required": [
          "url",
          "method"
        ]
      },
      "inspector": {
        "inputs": {
          "url": {
            "type": "text",
            "index": 1,
            "label": "API Endpoint Path",
            "tooltip": "A path on the SurveyMonkey API host of your account, including the API version, for example <code>/v3/surveys</code>. A full URL is accepted only when it points at that host (<code>https://api.surveymonkey.com</code>, or the EU or Canadian host for accounts in those data centers); any other host is rejected so your credential is never sent elsewhere."
          },
          "method": {
            "type": "select",
            "index": 2,
            "label": "HTTP Method",
            "defaultValue": "GET",
            "tooltip": "The HTTP method for the API call.",
            "options": [
              {
                "label": "GET",
                "value": "GET"
              },
              {
                "label": "POST",
                "value": "POST"
              },
              {
                "label": "PUT",
                "value": "PUT"
              },
              {
                "label": "PATCH",
                "value": "PATCH"
              },
              {
                "label": "DELETE",
                "value": "DELETE"
              }
            ]
          },
          "parameters": {
            "type": "key-value",
            "keyLabel": "Key",
            "valueLabel": "Value",
            "addLabel": "Add item",
            "removeLabel": "Remove item",
            "index": 3,
            "label": "Query Parameters",
            "tooltip": "Optional query parameters, for example <code>per_page</code>."
          },
          "body": {
            "type": "textarea",
            "index": 4,
            "label": "Request Body",
            "tooltip": "Optional JSON request body, for example <code>{\"title\": \"My Survey\"}</code>."
          },
          "headers": {
            "type": "key-value",
            "keyLabel": "Key",
            "valueLabel": "Value",
            "addLabel": "Add item",
            "removeLabel": "Remove item",
            "index": 5,
            "label": "Request Headers",
            "tooltip": "Optional additional headers. The Authorization header is set automatically."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "title": "Status Code",
            "example": 200
          },
          "headers": {
            "type": "object",
            "title": "Response Headers",
            "properties": {}
          },
          "body": {
            "type": "object",
            "title": "Response Body",
            "properties": {}
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
