Download OpenAPI specification:
API fro ChatRPG
New user registration
| name required | string Name of new user |
| email required | string <email> Email address of new user |
| password required | string Password for user |
| confirm_password required | string Confirmation password |
| url | string <url> User validation. Create hidden input, empty by default. Fails if it is anything other than an empty string. |
| time | string <date> User validation. Create hidden input and autofill a date on page load. Server checks time from page load. |
{- "name": "John Smith",
- "email": "john.smith@mail.com",
- "password": "password123",
- "confirm_password": "password123",
- "url": "",
- "time": "2026-05-24T15:33:03.365Z"
}{- "success": true
}User login
| email required | string <email> User email |
| password required | string <password> User password |
{- "email": "john.smith@mail.com",
- "password": "password123"
}{- "success": true
}Create the Stripe payment intent for the user
| token_packs required | number >= 5 Number of token packs for the user to purchase |
{- "token_packs": 8
}{- "client-secret": "pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH"
}