How do I rotate, edit, or delete an API token?
Organization admins manage tokens in Settings → API. Open a token's More options menu to edit, rotate, or delete it. Creating, editing, and deleting tokens needs a Team plan or above; on other plans, admins can view, copy, and rotate the organization's one token.
Similar questions
Why can't I create an API token?
Token creation requires an eligible plan and organization admin permissions. If you're an admin but don't see the option to create a token, your current plan may not include self-service token management — check your plan under Settings → Billing or contact Sales about upgrading. Logging out and back in won't resolve a plan-related limitation.
Why is my API request failing with a permissions error?
Each API token has specific permissions enabled by an organization admin. If a request fails with a permissions error, an admin can review and update the token's permissions under Settings → API. For historical Context API requests specifically, a permissions error can also mean the account doesn't have the Enterprise historical-access add-on subscription enabled, separate from the token's own permission settings.
How do I get my Context API token?
If you purchased the API from our website or linked your enterprise plan to an online account, view your token at https://app.spur.us/settings/api. Otherwise, contact your Spur rep for access information.
Why does my API key return a 401 error?
A 401 means the Context API didn't accept the token on the request. Check three things. First, the token is sent in a header named Token, for example -H "Token: $SPUR_TOKEN". An Authorization or Bearer header returns 401. Second, the token is copied in full and hasn't been rotated or deleted. Rotating a token stops the old secret immediately, so update every system that uses it. Third, the token has the right permission: a token with only a data feed permission can't call the Context API, and historical lookups (?dt=) need the Context API Historical Query permission. Tokens don't expire. A 403, not a 401, means the token was revoked or the account is disabled; contact support@spur.us. Tokens and their permissions are in the Spur app under Settings → API. See https://docs.spur.us/context-api#authentication.
Does the Context API offer historical search?
Yes. Historical lookups are included on Pro plans and above: add a date to a normal Context API lookup to get an IP's record as it stood on that day, going back 2 years. Your API token needs the Context API Historical Query permission. Enterprise subscriptions can add historical lookups through your Spur sales rep or sales@spur.us.
Related guides & explainers
Switching Between Organizations
If your account belongs to more than one Spur organization, use the Organization Switcher to move between them and manage each organization's plan and settings separately.
Context API Chrome Extension
Install Spur's Context API Chrome Extension to look up IP enrichment data directly from any web page — highlight an IP and get results inline, without leaving your browser. This is a developer-mode tool, not a Chrome Web Store listing.
Why the Organization Field Isn't Available the Same Way Across Spur's Data Feeds
The Context API's per-IP organization field isn't guaranteed in every data feed. Each feed has a different schema and covers a different slice of IP space, so field availability varies by feed.
Bots on Shared IP Addresses: Why Blocking the IP Can Block Real Users
Some bots run on addresses their operator owns. Others are seen behind cloud hosts, proxies and relays that also carry other people's traffic. Blocking a shared address blocks everyone on it, not just the bot.