New in phaf 26.11.1: Windows installer, CSV, Email and REST connectors. Release notes → A Spectro Web Solutions product ↗ EN PL

Guide

Connecting to a REST API

Use the REST connector to send data from any flow to an API. The example uses a fictional ERP API.

  1. 01

    Create the connection

    Add a REST connector and set the base URL, for example https://api.acme-erp.example/v2.

  2. 02

    Authenticate

    Choose API key, Basic or Bearer token. The secret is stored in the vault. OAuth 2.0 is in development.

  3. 03

    Set the operation

    Choose the method and the path, for example POST /invoices.

  4. 04

    Map the body

    Map fields from your source message to the request body.

    {
      "customerId": "C-1001",
      "currency": "USD",
      "lines": [{ "sku": "STORAGE-20FT", "qty": 3 }]
    }
  5. 05

    Handle the response

    Save the returned id on the message. Send 4xx errors to the error path; 5xx and 429 are retried.

Want us to build it with you?

Book a session and bring your own files.

Book a demo