Keep credentials safe

Published on August 2026

Reading Time: 5 Minutes

By Coinpes Team

Open a demo wallet and trade the same 1.95× payout rules — no slideware.

Introduction

Partner integrations fail most often from leaked secrets, missing PKCE, or treating user tokens like public API keys. Treat every credential as scoped to one partner and one user.

Assume anything that reached a browser, crash report, or chat log is public. Rotate it. Do not wait to see abuse.

Credential types

  • OAuth client — id + secret, server only, used at POST /oauth/token. Live and sandbox are different secrets.
  • User access token — Bearer header on /v1 and WebSocket bootstrap. Short-lived. Refresh on the server.
  • Webhook signing secret — HMAC for inbound POSTs. Separate from OAuth. Shown once when you create the endpoint in Referrals.

Rules

  • PKCE on every authorize request. No implicit grant.
  • Rotate refresh tokens; revoke on logout in your product.
  • Send Idempotency-Key on writes so retries cannot double-fill.
  • Respect rate limits; back off on 429 instead of retrying immediately.
  • Never log tokens, secrets, raw authorization codes, or full webhook bodies in shared log drains.
  • Verify webhook HMAC before you parse business fields. Use Test in Referrals to prove verification without a live trade.

PII

Partner routes do not return trader email or phone. Dashboard trader lists use anonymized ids. Do not try to join those ids to your CRM unless the user gave you that data in your own app.

If something leaks

In Referrals, open the app and choose Rotate secret. Copy the new secret into server env. Create a new webhook endpoint (or rotate the webhook secret on that page) and update your handler. Invalidate stored user refresh tokens. Assume any token that appeared in a client bundle is compromised.

If a secret leaks, rotate it from Referrals → Apps and rotate the webhook secret on the same page. Assume any token that appeared in a client bundle is compromised.

Errors and limits: Errors · Rate limits · Credential types.

Frequently asked questions

What happens if a secret leaks?
Rotate the OAuth secret from Referrals → Apps and the webhook secret in Referrals. Treat any token that appeared in a client bundle as compromised.
Does the Partner API return email or phone?
No. Partner routes omit trader PII. The dashboard shows anonymized trader ids.
Should I log access tokens?
No. Do not log tokens, client secrets, webhook secrets, or raw authorization codes.

Contact us

Get help with Coinpes trading and accounts

Whether you are learning contracts on demo, funding a live wallet, or need help with positions and payouts, tell us what you need and our team will follow up.

By submitting this form, you agree to Coinpes's Terms of Use and acknowledge our privacy information.