Skip to main content

Lookups and Campaigns Using the API

Create, retrieve, and manage lookup values, campaigns, and tags in Donorfy via the API.

Cristina Gruita avatar
Written by Cristina Gruita
Updated over a month ago

The API does not prevent duplicate lookup values. Always check existing entries before creating new ones.

Retrieve Available Lookup Types

Lookup types define which configuration lists you can manage via the API.

  1. Send a GET request to retrieve all available lookup types

  2. Review the returned list to identify the lookup types you need.

Use this endpoint:


These lookup types broadly match a subset of items found under Settings, then Configuration, and include Campaigns.


Retrieve Lookups for a Specific Type

Once you know the lookup type, you can retrieve its current values.

  1. Identify the lookup type name from the available lookup types.

  2. Send a GET request for that lookup type.

Example:


Add a New Lookup Entry

You can add new values to supported lookup lists.

  1. Choose the correct lookup type.

  2. Send a POST request with the lookup description:
    https://data.donorfy.com/api/v1/<apikey>/System/LookUpTypes/<lookuptype> -

📌Note: The API does not validate uniqueness. Duplicate entries can be created if you do not check first.


Retrieve Campaigns

Campaigns are treated as a lookup type.

  1. Send a GET request to retrieve all campaigns:
    https://data.donorfy.com/api/v1/<apikey>/System/LookUpTypes/Campaigns

  2. Use the returned IDs and descriptions for further processing.
    Campaigns returned by the API correspond to campaigns configured in Donorfy.


Work with Tag Categories

Tags are organised into categories, which must exist before tags can be added.

Retrieve Tag Categories

  1. Review the category names for use in subsequent calls.
    Tag category names are used directly in the endpoint URL.


Retrieve Tags Within a Category

You can list all tags within a specific category.

  1. Identify the tag category name:


  2. Only tags belonging to the specified category are returned.


Add a New Tag to a Category

You can add new tags to an existing category.

  1. Choose the tag category.

  2. Send a POST request with the tag name as the lookup description:

  3. Confirm the tag appears in the category.

As with other lookups, the API does not check for duplicates.

⚠️Important:

The Donorfy API is a Professional only feature. Essential subscribers, please contact us to find out more about upgrading.

Did this answer your question?