claims.redeem
POST/claims/facebook
Redeems a Facebook subscriber claim code for subscriber access until the end of the fifth day of the month after the code's month. Each code works once; redeeming your own code again only returns the same end date. Needs a key from an account with a verified email.
Parameters
| Parameter | In | Description |
|---|---|---|
code | body | Required. Claim code received through Facebook, shaped FB-XXXX-XXXX-XXXX-XXXX-XXXX. |
Request
curl -X POST "https://api.modernengineer.dev/claims/facebook" \
-H "Authorization: Bearer $SE_KEY" \
-H "Content-Type: application/json" \
-d '{"code":"FB-7Q2K-9XHM-4D1R-B8VN-3JTC"}'Response
{
"accessUntil": "2026-12-05T23:59:59.999Z"
}Errors
| Status | Error | When |
|---|---|---|
| 401 | unauthenticated | The API key is missing or invalid. Comes with a WWW-Authenticate header. |
| 403 | forbidden | The account's email is not verified yet. |
| 400 | invalid_input | A parameter is missing or invalid, for example a locale other than vi or en. |
| 404 | not_found | The code is wrong, expired, or already used by someone else. |
| 429 | too_many_requests | More than 10 attempts in an hour for this account. |