Skip to main content
POST

Create Device Ping

Use this endpoint to record a device location ping for a customer. This endpoint helps verify a customer’s location by sending their device’s coordinates. The location data is validated and returns information about the detected geographic location, along with whether the location check passed or failed. This endpoint authenticates with your client secret, not your API key. Call it directly from the client (browser, app, etc.) rather than your server, since Soap needs to see the end user’s real IP address to complete the check.
The companion endpoint Get Latest Geo Check uses your API key instead — it’s a server-side call, not a client secret call.
This endpoint authenticates with your client secret, not your API key:
Your client secret is in the Dashboard under Developers. It looks like secret_.... It is safe to use from a browser or mobile client, which is required here because Soap needs the end user’s real IP address. Requests with an invalid client secret return 422 with {"error": "Client secret not found."}.

Authorizations

Authorization
string
header
required

Bearer token authentication using your business client secret (secret_...), sent as Authorization: Bearer YOUR_CLIENT_SECRET. This secret is browser-safe and is used only for POST /api/v1/device_pings.

Body

application/json
latitude
number
required

Latitude coordinate of the device

Example:

37.785834

longitude
number
required

Longitude coordinate of the device

Example:

-122.406417

customer_id
string
required

Unique identifier for the customer

Example:

"cus_vi57KegYgcRqcGHqip8q6UZiqtrwMT870"

Response

Device ping recorded successfully

geo_check
object

Reverse geocoding results from the lat/long you provided

id
string
Example:

"dp_ETBkCvQztKUrzVeQUypYDB1EtUP7oUUX"

ip_check
object | null

IP check results (turned off for now)

Example:

null