API Token Authentication
The LinkedCamp API uses token-based authentication. Every authenticated request must include a token header containing your API key.
curl -X GET https://api.linkedcamp.com/users/me \
-H "token: YOUR_API_TOKEN"
Obtaining Your API Token
There are two ways to get your API token:
From the Dashboard
- Log in to your LinkedCamp account
- Navigate to Settings > API
- Copy your API token
Via the API (Agency Owners)
Agency owners can retrieve API tokens for their sub-accounts using the Get API Token endpoint:
curl -X GET "https://api.linkedcamp.com/tokens?accountEmail=user@example.com" \
-H "token: AGENCY_OWNER_TOKEN"
All API requests require the following headers:
| Header | Required | Description |
|---|
token | Yes | Your LinkedCamp API token |
Content-Type | Yes* | application/json (for POST/PUT requests) |
The Content-Type header is only required for requests that include a JSON body (POST and PUT methods).
Authentication Errors
If authentication fails, the API returns:
{
"success": false,
"message": "Invalid Token!"
}
Common reasons for authentication failures:
| Error Message | Cause |
|---|
Token is required! | The token header is missing from the request |
Invalid Token! | The token is incorrect, expired, or the account is inactive |
User not found! | No active user account is associated with the token |
Token Requirements
- The token must belong to an active user account
- The user must have a current plan assigned
- Tokens are validated on every request and the
lastUsedAt timestamp is updated automatically