API — Enrichment

Validate API Key

Use this endpoint to verify the validity of your Deep Enrich API key.

  • Endpoint:
    GET /account/keys/verify
Authorization

A valid API key is required in the request header.

Format:

  • Authorization: Bearer
    < your_api_key >
Response

200 OK – API Key is Valid

  • workspace_id (string)
    – Unique identifier for your workspace.

Example Response:

							
							{
							  "workspace_id": "9b27f4a1-3d62-45b8-89a2-91df47e6c9a8"
							}
						

 

 

 

										
										curl --request GET \
										  --url https://app.Deepenrich.com/api/v1/account/keys/verify \
										  --header 'Authorization: Bearer '
										
									
										
										import requests

										url = "https://app.Deepenrich.com/api/v1/account/keys/verify"

										headers = {"Authorization": "Bearer "}

										response = requests.request("GET", url, headers=headers)

										print(response.text)
										
									
										
										const options = {method: 'GET', headers: {Authorization: 'Bearer '}};

										fetch('https://app.Deepenrich.com/api/v1/account/keys/verify', options)
										  .then(response => response.json())
										  .then(response => console.log(response))
										  .catch(err => console.error(err));
										
									
										
										<?php 

										$curl = curl_init();

										curl_setopt_array($curl, [
										  CURLOPT_URL => "https://app.Deepenrich.com/api/v1/account/keys/verify",
										  CURLOPT_RETURNTRANSFER => true,
										  CURLOPT_ENCODING => "",
										  CURLOPT_MAXREDIRS => 10,
										  CURLOPT_TIMEOUT => 30,
										  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
										  CURLOPT_CUSTOMREQUEST => "GET",
										  CURLOPT_HTTPHEADER => [
										    "Authorization: Bearer "
										  ],
										]);

										$response = curl_exec($curl);
										$err = curl_error($curl);

										curl_close($curl);

										if ($err) {
										  echo "cURL Error #:" . $err;
										} else {
										  echo $response;
										}
										
										
									
										
										
										package main

										import (
											"fmt"
											"net/http"
											"io/ioutil"
										)

										func main() {

											url := "https://app.Deepenrich.com/api/v1/account/keys/verify"

											req, _ := http.NewRequest("GET", url, nil)

											req.Header.Add("Authorization", "Bearer ")

											res, _ := http.DefaultClient.Do(req)

											defer res.Body.Close()
											body, _ := ioutil.ReadAll(res.Body)

											fmt.Println(res)
											fmt.Println(string(body))

										}
										
									
										
										HttpResponse response = Unirest.get("https://app.Deepenrich.com/api/v1/account/keys/verify")
										  .header("Authorization", "Bearer ")
										  .asString();
										
									
example
										
											{
											  "workspace_id": ""
											}
										
									
												
													{
													  "code": "error.authorization.not_set",
													  "message": "Authorization headers not set"
													}
												
											
												
													{
													  "code": "error.authorization.not_bearer",
													  "message": "Authorization headers not have prefix 'bearer'"
													}
												
											
												
													{
													  "code": "error.api.key",
													  "message": "Unknown api key"
													}
												
											
										This response does not have an example.