Skip to main content

API Authentication


1. Overview

Base URL:

  • HTTPS (recommended): https://006ip.com/api-user

Format: application/json (except GET endpoints without a body)

Encoding: UTF-8

Business APIs use the prefix /open/staticip/**. See Common for unauthenticated endpoints.


2. Developer credentials

Log in to the user console and open Account → My Account → Basic Settings (Authentication section).

Console fieldRequest headerDescription
userId (developer ID / key)UserIdDeveloper principal
tokenTokenDeveloper secret (credential)

The header is named UserId but the value is the developer key, not the numeric user primary key.


3. Request headers

Required for: /open/staticip/**

HeaderRequiredDescription
UserIdYesDeveloper ID
TokenYesDeveloper token
Content-TypeFor POST with bodyapplication/json
X-Idempotency-KeyRecommended for writesIdempotency key
curl -X POST "https://006ip.com/api/open/staticip/inventory/countries" \
-H "Content-Type: application/json" \
-H "UserId: your-developer-id" \
-H "Token: your-developer-token" \
-d '{"countryCode":"US"}'

4. Response format

Wrapped in Result<T>:

FieldTypeDescription
codestring"0" = success
msgstringMessage
dataobject / arrayPayload
timestampnumberServer time (ms)
traceIdstringTrace ID

5. Long integer IDs

All id-like Long fields are strings in JSON (request and response).

cityCode in inventory/order APIs is the string form of cityId.


6. Auth error codes

codeDescriptionHTTP
20000Invalid or disabled credentials401
20010Missing UserId header401
20011Missing Token header401

7. Typical flow

Obtain UserId + Token (console)
→ Location APIs
→ GET /open/staticip/purchase/options
→ POST /open/staticip/inventory/countries
→ POST /open/staticip/purchase/quote
→ POST /open/staticip/purchase/orders/place-and-pay
→ POST /open/staticip/orders/detail

See the sidebar for endpoint details.