Fountain API Overview

Fountain API Overview

Fountain offers REST APIs that allow you to programmatically manage your applicants and workers across the entire Fountain product suite. You can use these APIs to automate tasks, trigger actions when changes occur, or synchronize your external systems with Fountain.

Authentication

For Hire-specific authentication (non Fountain One customers), please refer to the Hire API Overview.

Fountain One OAuth Flow

You can create two different types of Fountain API keys:

When creating an API key, make sure to copy both the Key and Secret strings as you will need both to authenticate later and won't be able to view the Secret key again after you close that screen.

Fountain uses the OAuth2 standard authentication flow to generate an Authorization Bearer token. The resulting authentication token is valid for 60 minutes.

This is equivalent to performing the following call then using the resulting token for subsequent requests to the API:

cURL

curl -X "POST" "https://services.fountain.com/api/servicesecurity/processes/apikey/oauth/token?grant_type=client_credentials&scopes=employer" \
-H 'Content-Type: application/x-www-form-urlencoded' \
-u 'API_KEY:API_SECRET'

All subsequent requests to Fountain's API will be in the form:

cURL

curl "https://services.fountain.com/api/serviceworkforce/workers" \
-H 'Application: Bearer AUTH_TOKEN'

Or if you are calling a Hire endpoint, using the same base URL regardless of tenant:

cURL

curl "https://services.fountain.com/api/servicehire/v2/applicants" \
-H 'Application: Bearer AUTH_TOKEN'

Hire API Keys (legacy)

The Fountain Hire suite offers other ways to authenticate. The above method is however the preferred authentication flow. Please refer to Hire API Overview for more information on other Hire API authentication methods.