هذه المقالة متاحة باللغة الإنجليزية حاليًا.
API & integrationsCall an external API from a workflow
Configure method, URL, headers, body, response mapping, and workflow variables.
Configuration fields
- URL: the HTTPS endpoint called by the workflow.
- Method: the supported HTTP method required by the external API.
- Headers: content type, authorization, and other required metadata.
- Body: the request payload, often JSON.
- Response mappings: values copied from the response into workflow variables.
- Status variable: a variable used to store the returned status.
- Response variable: an optional variable used to retain selected response data.
Build the request
- Read the external API’s official documentation.
- Choose the method and HTTPS URL.
- Add only required headers.
- Construct the body using approved workflow variables.
- Map only the response values needed later.
- Create success and failure branches.
- Test timeouts, authentication failures, invalid data, and server errors.
Do not expose credentials
Prefer a secret-management mechanism supported by the production Kinsen environment. Do not place long-lived credentials in customer-visible messages, exported examples, screenshots, or public documentation.