Antony REST icon

Antony REST

Call known Antony REST API operations

Actions159

Contact → Create Contact

AI-generated

Summary

Create a new contact by sending a JSON-formatted contact object to the Antony API's /api/v1/contacts endpoint.

Inputs

  • Body Input Mode — Choose whether to specify the contact data as JSON or as form fields.
  • Body JSON — Provide the contact data as a JSON object when 'Body Input Mode' is set to JSON.
  • Body Parameters — Provide the contact data as multiple form fields (name-value pairs) when 'Body Input Mode' is set to Form Fields.

Output shape

a list of JSON objects representing the newly created contact(s) as returned by the Antony API

The operation accepts multiple input items and outputs corresponding created contact objects. If an error occurs and 'Continue On Fail' is enabled, the error message is output instead for the respective item.

Examples

Example 1: Create a contact by supplying a JSON object with contact details

Set 'Body Input Mode' to 'JSON' and provide the contact data JSON in the 'Body JSON' field.

Example 2: Create a contact by supplying individual form parameters

Set 'Body Input Mode' to 'Form Fields' and add name-value pairs for each contact attribute in 'Body Parameters'.

Links

Discussion