API Key Login
POST /user/login
Authenticates using an API key and returns a JWT token for subsequent API calls.
The API key associated with your Mannco.store account. You can generate this from your account settings.
Response
Success Response
JWT Token Structure
The JWT token contains the following claims:| Claim | Type | Description |
|---|---|---|
iss | string | Issuer — always "API" |
sub | string | Steam ID of the user |
exp | integer | Expiration timestamp (31 days from creation) |
iat | integer | Issued at timestamp |
jti | string | Unique token identifier (UUID) |
ip | string | Client IP address |
country | string | ISO country code |
steamid | integer | Numeric Steam ID |
API | boolean | Always true for API authentication |
Error Responses
| Status | Message | Description |
|---|---|---|
error | Missing required parameter: apiKey | The apiKey field was not provided |
forbidden | Invalid API key | The provided API key does not exist or is invalid |
forbidden | Country blocked | Your country is blocked from accessing the API |
Usage Example
cURL
JavaScript
Python
Store the JWT token securely. It expires after 31 days and must be included in all authenticated API requests.
Using the JWT Token
Once you have obtained a JWT token, include it in subsequent API requests. The exact method depends on how the API is configured, but typically one of:- Cookie: The token may be automatically set as a session cookie
- Authorization Header:
Authorization: Bearer {token} - Custom Header: Check specific endpoint documentation
Most endpoints in this API require the
api permission level, which means they require a valid JWT token obtained through this authentication endpoint.