To call the API so that it performs the operations or returns the data requested by your application, you need to make a POST request to the appropriate endpoint. When creating new resources like an EmpowerID Person, you need to POST a request to the endpoint that starts the EmpowerID Workflow service, passing to the API the necessary header and request data. For creating an EmpowerID Person, this data is as follows.
The API key for the OAuth application you created above.
Authorization
The OAuth token you received from EmpowerID.
Content-Type
application/json
Request Data
Request data is sent to the API in JSON format. The data in the below request represents the minimum key/value pairs required for creating an EmpowerID Person. The API Reference includes all possible key/value pairs that can be submitted when creating people.
OutputParameters are optional, but are useful for viewing the results of the operation.
In the examples, we are passing in the minimum number of parameters and requesting an output showing the PersonID, LastName and FirstName attributes of the person that is created by the operation.
cURL
Be sure to use double quotes unless you are making the request from a non-Windows OS.