Skip navigation
REST › claims.redeem

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

ParameterInDescription
codebodyRequired. Claim code received through Facebook, shaped FB-XXXX-XXXX-XXXX-XXXX-XXXX.

Request

curl
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

200 OK · application/json
{
  "accessUntil": "2026-12-05T23:59:59.999Z"
}

Errors

StatusErrorWhen
401unauthenticatedThe API key is missing or invalid. Comes with a WWW-Authenticate header.
403forbiddenThe account's email is not verified yet.
400invalid_inputA parameter is missing or invalid, for example a locale other than vi or en.
404not_foundThe code is wrong, expired, or already used by someone else.
429too_many_requestsMore than 10 attempts in an hour for this account.

In MCP