API Keys
API Keys authorize access to the API and must be included with every request. There are two types:
- Paid API Keys (starting with
key_...
) - Free API Keys (starting with
ckey_...
, wherec
stands for cryptographic)
Creating a New API Key
To obtain a paid API Key, follow these steps:
-
Sign up for an account in the ALTCHA App at eu.altcha.org for EU customers, or us.altcha.org for US customers.
-
After registration, create a new project.
-
Open the newly created project and go to the project settings:
-
Click “Create API Key,” set a name, and click “Save.”
Configuring API Keys
When creating a new API Key, you’ll see several configuration options:
- Name: A custom name to help identify the key.
- Secret: A key secret for cryptographic verification, randomly generated by default.
- Rate Limit: An optional rate limit applied to all requests authenticated with this key.
- Referrer Domains: An optional list of allowed domain names. Enter one domain per line. For non-standard ports, format as
<domain>:8080
. - Features: Enable specific features for this API Key.
Rate Limits
You can configure custom rate limits for each API Key, expressed as requests per interval (<requests>/<interval>
). For example:
100/120s
: Limits to 100 requests per 120 seconds.100/10m
: Limits to 100 requests per 10 minutes.10/1h
: Limits to 10 requests per 1 hour.10/1d
: Limits to 10 requests per day.
Leaving the Rate Limit field empty will allow unlimited requests, but global rate limits will still apply.
Features
Each API Key must have at least one feature selected. Only the selected features will be accessible with the key.
- Forms API: Grants access to managing forms.
- AntiSpam API: Grants access to the PoW Challenge API and SpamFilter API.