Skip to main content
New to Corsair? See API access, authentication, and error handling.

Account

identity

account.identity Read the identity behind the credential: user, organization and current scopes (needs an OAuth token with account.read). Risk: read
Input: empty object Output

Api Keys

create

apiKeys.create Create an API key and return its secret once (needs an OAuth token with apikeys.manage). Risk: write
Input Needs an OAuth token with apikeys.manage. The answer carries the new secret once; read it back later with apiKeys.reveal. Output

list

apiKeys.list List the organization’s API keys without their secrets (needs an OAuth token with apikeys.read). Risk: read
Input: empty object Output

reveal

apiKeys.reveal Read back an existing API key’s secret (needs an OAuth token with apikeys.reveal). Risk: destructive
Input Output

revoke

apiKeys.revoke Revoke an API key so it stops working; it stays listed with revoked_at (needs apikeys.manage). Risk: destructive · Irreversible
Input Output

rotate

apiKeys.rotate Replace the secret behind an API key; the old secret stops working at once (needs apikeys.manage and apikeys.reveal). Risk: destructive · Irreversible
Input The old secret stops working at once and the new one comes back in the answer. Output

Databases

checksum

databases.checksum Read the MD5, SHA-1, SHA-256 and SHA-512 checksums of one published database file. Risk: read
Input Output

download

databases.download Get a time-limited download link for one database version and format, or one build by name; the file itself is not fetched. Risk: read
Input Returns { url }: the time-limited object-storage link the API redirects to. The redirect is not followed, so no file is downloaded; fetch url yourself. A database the organization holds no license for answers 403 NOT_LICENSED; a format a database is not built in answers 400 INVALID_FORMAT; a build older than 7 days answers 410 BUILD_GONE. Output

downloads

databases.downloads List the organization’s recent database download attempts, newest first, refusals included. Risk: read
Input Recent download attempts for the organization, refusals included, newest first. Output

list

databases.list List every database the organization can see with its license standing, versions and formats (needs a key with db.download). Risk: read
Input: empty object Every database family with the organization’s license standing (licensed, expired, unlicensed) and its versions. Pass a versions[].id (e.g. tor_ip_v1) to the other databases.* routes. Every organization holds a license to the Open databases (Tor, relay). Output

metadata

databases.metadata Read a database version’s last update, entry count and column schema without downloading it. Risk: read
Input The version’s update frequency, last update, entry count and column schema per format, without a license. Output

Entitlement

get

entitlement.get Read the plan behind the key and the requests used against its quota in the current window. Risk: read
Input: empty object The plan behind the key (free is named Unlimited) and the requests used against its quota between window_start and window_end. Output

Ip

batch

ip.batch Classify up to 1000 IP addresses in one call (a paid plan; a free key answers a batch of one); per-address failures come back in errors. Risk: read
Input Up to 1000 strings in ips; each distinct string costs what one lookup costs. Both maps in the answer are keyed by the string as sent: results holds the answers, errors the strings that could not be answered (a non-address is a 400 there). Each answer is saved to lookups like a single lookup. The free plan answers a batch of one address and refuses anything larger with 402. Output

lookup

ip.lookup Check whether an IP address is a VPN, a Tor node or a privacy relay, with its country and ASN; omit ip for the caller’s own address. Risk: read
Input Omit ip and the service looks up the caller address. Only ip and is_vpn are always present. A keyless or free-plan answer usually also carries is_tor, is_relay, is_bogon, is_anycast, tor, relay, location, asn and hostname, and a paid plan or a trial adds the other is_* flags and their detail objects; any field the plan does not include is absent, so test for presence. A lookup with an explicit ip is saved to the lookups table under that address, replacing the previous row for it; a lookup without ip is returned but not saved, and a failed save does not fail the lookup. Anything but an IPv4 or IPv6 address in ip is refused before the request. userAgent adds a verdict on the visitor’s User-Agent and is never kept. Output

Organization

get

organization.get Read the credential’s organization (needs an OAuth token with org.read). Risk: read
Input: empty object Output

listMembers

organization.listMembers List the organization’s members (needs an OAuth token with org.read). Risk: read
Input: empty object Output