Test an API Key
Overview
You created an API key. Now you're ready to test Apollo API and confirm access.
For this scenario, we're going to use this developer hub and Postman, but the same information can be applied to your preferred development platform.
Test Apollo API
To test Apollo API directly in this documentation:
- Go to an endpoint reference, such as people API search.
- Choose one of the available programming languages.
- Enter your API key in the
x-api-keyheader field. - Enter parameter details to generate your API request. At a minimum, address the required parameters. As you add values to the parameters, the API request updates live.
- Click Try It to send your request.
The response from Apollo API appears directly in the response section. A successful request generates a 200 response.
Test Apollo API with an API Client
Open SesameTip: Instead of building requests by hand, you can import every Apollo endpoint into Postman at once with API key authentication preconfigured using the OpenAPI specification.
While this example uses Postman, you can use any API client to test Apollo API.
To test Apollo API in an API client:
- Create a new request in Postman.
- Select GET and paste
https://api.apollo.io/api/v1/auth/healthfor the URL.
- Click Authorization and select No Auth as the type.
- Click Headers and add the following keys and values:
| Key | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| x-api-key | Enter your Apollo API key. |
- Click Send.
If your setup is correct, you receive the following JSON response:
{
"healthy": true,
"is_logged_in": true
}When both values in the response are true, you're ready to use Apollo API.
False ResponseIf either object has a
Falsevalue, check your request. Delete any erroneous spaces or returns after your API key. Once you're sure your request is formatted appropriately, click Send to try again.
Use Apollo API
You confirmed your API key is working.
Now try some tutorials to understand Apollo API capabilities.
Updated 1 day ago