Skip to content
  • Why WPGetAPI?
  • Examples
  • Pricing
  • Plugins
    • PRO Plugin
    • API to Posts Plugin
    • OAuth 2.0 Plugin
  • Docs
  • Support
    • Frequently Asked Questions
    • Feature Request
    • Support Ticket
  • account_circle
PRO Plugin
Howdy! How can we help you?
  • Introduction

    • Quick Start
    • Frequently Asked Questions
    • Will this work with my API?
    • Understanding API docs
    • Step by Step Example
  • Setup

    • Setup Page
    • Endpoint Page
    • Parameters - Query String
    • Parameters - Headers
    • Parameters - Body POST
    • Shortcode
    • Template Tag
    • Gutenberg Block
  • Connecting your API

    • API Key in Headers
    • API Key in Query String
    • Authentication & Authorization
  • Output API Data

    • Format API to HTML
    • Format API to HTML Table
    • Format API to Image Gallery
    • Format JSON Data
  • Integrations

    • Send form data to API
    • WPForms to API
    • Gravity Forms to API
    • Contact Form 7 to API
    • WooCommerce to API
    • WooCommerce API Product Sync
    • wpDataTables to API
    • Connect WordPress to OpenAI
    • Connect RapidAPI to WordPress
    • Connect Zoho CRM to WordPress
    • Page Builders (Elementor, DIVI)
    • Formidable Forms to API
    • Elementor Form to API
    • JetFormBuilder to API
    • Fluent Forms to API
    • WS Form to API
    • Ninja Tables to API
    • Easy Digital Downloads(EDD) API Product Sync
    • Ultimate Member Forms to API
  • Tips & Tricks

    • Filters & Action Hooks
    • Code Snippets Plugin
    • Troubleshooting
    • Code Snippets
  • PRO Plugin

    • Installation
    • Actions
    • Tokens
    • Caching
    • Nested data
    • Chaining API calls
    • Dynamic Variables
    • Format API to HTML
    • Call API on user registration
    • Using AJAX to trigger API call
    • Base64 Encoding
    • Licensing
    • Filters & Action Hooks
  • OAuth 2.0 Plugin

    • Installation
    • How it works
    • Grant Type - Client Credentials
    • Grant Type - Authorization Code
    • Licensing
  • API to Posts Plugin

    • Installation
    • Getting Started
    • Multiple Endpoints
    • Mapping Fields
    • Filters & Action Hooks
    • Pagination
This feature is only available in the Pro Plugin.

 

By using Actions within the PRO plugin, you can very easily capture a newly registered user on your site and send their details to any API you like.

You simply need to setup the endpoint that you want to send the user details to, select User – New user Registered as the action and then insert the users data within the endpoint. It looks something like the below:

We use the Tokens that look like (action:data:some_data_to_get) to grab the users details. Here are what the values look like that are available:

array ( 
	'data' => array( 
		'user_login' => 'Test Username', 
		'user_email' => '[email protected]', 
		'user_pass' => 'xxxxxxxxxx', 
		'meta' => array( 
			'custom_value1' => 'stuff', 
			'custom_value2' => 'some data', 
			'another_one' => 'something', 
		)
	)
)

To get the ‘custom_value1’ value within this array, we would use a token like this: (action:data:meta:custom_value1) which would return the value of ‘stuff’.

You can see these values by setting up your endpoint as above and then registering a new user. You then visit the Actions Log page at WPGetAPI > Actions Log within your admin. There you will see all the data that is available to send to the API.


Old method to call API on User Registration

Below is the old way to send user registration details to an API. This method is still available and still works, but is a little more cumbersome to set up. We are leaving this here as an alternative method.


This feature uses the default WordPress hook – user_register – which makes this feature available to every plugin or theme that uses the standard WordPress registration method, which should be 99% of them. Even if your plugin or theme uses a custom looking registration form, or even social login/registration, chances are they are using this default WordPress registration hook.

It also obviously works for the default WordPress registration page located at www.yoursite.com/wp-login.php?action=register

How to use it

This is as simple as setting an attribute within your endpoint settings page and then using Tokens to grab the email and username fields, or to grab any custom fields that have been added to your registration form.

Let’s look at how to set it up:

Within the Headers fields of our endpoint, we add wpgetapi_on into the Name field and then set the corresponding value to registration.

We can then use the following tokens to capture the data that the user registers with:

(system:POST:user_email) – captures the users email address. This could also be “email” rather than “user_email” in some forms.

(system:POST:user_login) – captures the users username.

If there are custom registration fields set up, you can capture these by using the same format as the above tokens, but simply setting the field name to whatever you require.

In the image below we are then sending our captured data within the Body POST fields under the name of properties. This particular endpoint is what Hubspot requires, the setup of your API may be a little different.

On this page

Unlock amazing features with the PRO Plugin

The PRO Plugin takes your API integrations to the next level.

  View Pro Plugin
contact_support

Still not sure?

APIs can be daunting and sometimes downright confusing.

But we are here to help! Our support is amazing and we can assist you with any setup required and ensure your API integrations are a success!

Ask Us Anything

Connect your WordPress website to external APIs without writing a single line of code. Send data from WordPress to your API or display data from your API within WordPress.

Support

  • Documentation
  • Support Ticket
  • Refund Policy
  • Contact Us
  • About Us
  • Affiliates

Articles

  • Quick Start Guide
  • WooCommerce Orders to API
  • WooCommerce API Products Sync
  • Contact Form 7 to API
  • WPForms to API
  • Gravity Forms to API
  • WordPress to RapidAPI

WordPress API Plugins

  • Free WPGetAPI Plugin
  • PRO Plugin
  • API to Posts Plugin Plugin
  • OAuth 2.0 Authorization Plugin

© 2025 WPGetAPI. All Rights Reserved.

"*" indicates required fields

Name*
This field is for validation purposes and should be left unchanged.