Admin

Administrative endpoints requiring bearer token authentication

Grant credits to user (Admin)

post
/users/{address}/credits

Grants new credits to a user for completing a specific goal. Requires bearer token authentication with API_ADMIN_TOKEN.

Authorizations
AuthorizationstringRequired

Bearer token authentication for administrative endpoints. Use API_ADMIN_TOKEN for most admin endpoints or PROGRAMMATIC_API_ADMIN_TOKEN for /flag endpoint.

Path parameters
addressstringRequired

User's Ethereum address

Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEbPattern: ^0x[a-fA-F0-9]{40}$
Body
goalIdstringRequired

ID of the goal that was completed

Responses
chevron-right
200

Credits granted successfully

application/json
post
/users/{address}/credits

Restart user program (Admin, Non-Production)

post
/restart-program

Restarts a user's progress in the current season. Only available in non-production environments. Requires bearer token authentication with API_ADMIN_TOKEN.

Authorizations
AuthorizationstringRequired

Bearer token authentication for administrative endpoints. Use API_ADMIN_TOKEN for most admin endpoints or PROGRAMMATIC_API_ADMIN_TOKEN for /flag endpoint.

Body
addressstringRequired

User's Ethereum address

Pattern: ^0x[a-fA-F0-9]{40}$
Responses
chevron-right
200

Program restarted successfully

application/json
post
/restart-program

Test email sending (Admin, Non-Production)

post
/test-email

Sends a test email to verify email notification functionality. Only available in non-production environments. Requires bearer token authentication with API_ADMIN_TOKEN.

Authorizations
AuthorizationstringRequired

Bearer token authentication for administrative endpoints. Use API_ADMIN_TOKEN for most admin endpoints or PROGRAMMATIC_API_ADMIN_TOKEN for /flag endpoint.

Body
addressstringRequired

User's Ethereum address to send test email to

Pattern: ^0x[a-fA-F0-9]{40}$
Responses
chevron-right
200

Test email sent successfully

application/json
post
/test-email

Flag users for multi-accounting (Programmatic Admin)

post
/flag

Flags one or more users for multi-accounting detection or blacklisted addresses. This endpoint is designed for programmatic use by external systems. Requires bearer token authentication with PROGRAMMATIC_API_ADMIN_TOKEN.

Authorizations
AuthorizationstringRequired

Bearer token authentication for administrative endpoints. Use API_ADMIN_TOKEN for most admin endpoints or PROGRAMMATIC_API_ADMIN_TOKEN for /flag endpoint.

Body
ipstringRequired

IP address associated with the flagged users

addressesLinkedstring[]Required

List of Ethereum addresses linked to the same IP

sourcestring · enumOptional

Source of the flagging detection

Possible values:
Responses
chevron-right
200

Users flagged successfully

application/json
post
/flag

Unflag users (Admin)

post
/unflag

Removes flags from users for captcha or multi-account violations. Requires bearer token authentication with API_ADMIN_TOKEN.

Authorizations
AuthorizationstringRequired

Bearer token authentication for administrative endpoints. Use API_ADMIN_TOKEN for most admin endpoints or PROGRAMMATIC_API_ADMIN_TOKEN for /flag endpoint.

Body
addressesstring[]Required

List of Ethereum addresses to unflag

cacheTypestring · enumRequired

Type of flag to remove

Possible values:
Responses
chevron-right
200

Users unflagged successfully

application/json
post
/unflag

Get flagged wallets (Admin)

get
/admin/flagged-wallets

Retrieves all flagged wallets with their flagging details including timestamps, reasons, and associated IP addresses. Provides summary statistics. Requires bearer token authentication with API_ADMIN_TOKEN.

Authorizations
AuthorizationstringRequired

Bearer token authentication for administrative endpoints. Use API_ADMIN_TOKEN for most admin endpoints or PROGRAMMATIC_API_ADMIN_TOKEN for /flag endpoint.

Responses
chevron-right
200

Flagged wallets retrieved successfully

application/json
get
/admin/flagged-wallets

Trigger reminder emails (Admin)

post
/trigger-emails

Manually triggers reminder email sending for users based on time window. Requires bearer token authentication with API_ADMIN_TOKEN.

Authorizations
AuthorizationstringRequired

Bearer token authentication for administrative endpoints. Use API_ADMIN_TOKEN for most admin endpoints or PROGRAMMATIC_API_ADMIN_TOKEN for /flag endpoint.

Body
daystring · enumOptional

Optional day of week filter

Possible values:
dateTimestring · enumRequired

Time window for sending emails

Possible values:
Responses
chevron-right
200

Emails triggered successfully

application/json
post
/trigger-emails

Last updated