CPC1 Hà Nội icon

CPC1 Hà Nội

Kết nối và tự động hóa hệ thống CPC1 Hà Nội qua Laravel Passport OAuth2

Actions2

API Chung → Gọi API tùy chỉnh

AI-generated

Summary

Call any custom API endpoint of the CPC1 Hà Nội system using the specified HTTP method, sending optional query parameters and JSON body, then return the full API response as an n8n item.

Inputs

  • API Version (required) — The API version to call, currently only 'v4' is supported.
  • HTTP Method (required) — The HTTP method to use for the request (DELETE, GET, PATCH, POST, PUT).
  • Endpoint (required) — The API endpoint path to call, without the version prefix (e.g., /users, /me).
  • Send Body — Toggle to send a JSON body with the request; only applicable for POST, PUT, or PATCH methods.
  • Body (JSON) — The JSON content to send in the request body if 'Send Body' is enabled.
  • Options — Additional optional settings including query parameters and whether to ignore SSL certificate errors.
  • Options.queryParameters — A collection of key-value pairs to append as query parameters on the request URL.
  • Options.ignoreSSLIssues — If enabled, SSL certificate errors will be ignored, useful only for testing local environments.

Output shape

a single n8n item containing the full JSON response from the called API endpoint

The node constructs the full request URL as {apiBaseUrl}/{apiVersion}/{endpoint}, attaches query parameters, and optionally sends a JSON body. The response is wrapped in an n8n item with a paired item index for reference. Errors in request or invalid JSON body will throw node errors; enabling 'continue on fail' will instead output the error message in the returned item.

Links

Discussion