viaSocket Help

API Call

API Call is a built-in tool in viaSocket that lets you connect your workflows with any external app or service — even those not natively integrated.

#

How to use it

1. Add the step
In your workflow, click + Add Step → Built-In Tools → API Call.

2. Import cURL or Ask AI (optional)
Paste a cURL command or describe your API call in plain text — viaSocket will auto-fill the configuration for you.

API-cURL.png


3. Configure in the API Editor

  • Select a method — GET, POST, PUT, PATCH, or DELETE

  • Enter the endpoint URL

  • Add Query Params as key-value pairs

  • Set the Body format — form-data, x-www-form-urlencoded, JSON, or raw

  • Add Headers — e.g. Content-Type: application/json

APIeditor.png

4. Test and Save
Click Test to preview the response, then Save to add it to your workflow.

#

Example

  • Method: GET

  • URL: https://ws.audioscrobbler.com/2.0/?method=artist.gettoptracks

  • Headers: Content-Type: application/json

Use field mapping to pass dynamic values like ${fav_artist} from previous steps.

#

Combine with other tools

  • JS Code — process or transform the API response

  • Multiple Paths — apply logic based on the response