Create a Relm Account
You need a Relm account, with onboarding approved, before you can create API keys. Sign up in the Relm portal: https://portal.relm.co for production, or https://sandbox.portal.relm.co for sandbox.
Sign up in the portal
- Choose your account type: Individual, Business or Partner.
- Enter your details:
- First name and last name (required for every type).
- Company name (required for Business and Partner; not asked for Individual).
- Email and password.
- Accept the terms and the privacy policy, and complete the security check.
- Verify your email with the code Relm sends you.
- Complete your profile: phone number, country and the products you want to use. For a business account you can also correct the company name here.
- Finish onboarding (identity and business verification). Once Relm approves it, you can create API keys.
If you leave before verifying your email, logging in again takes you back to the verification step, then to your profile.
Rules for each field
| Field | Rules |
|---|---|
| First name, last name | 1 to 50 characters after trimming spaces. Must contain at least one letter. Can’t contain @, ://, www., < or >. |
| Company name | Same rules as names. Required for Business and Partner accounts (and MERCHANT sign-ups through the API). |
| A valid, permanent email address. Addresses at temporary-email providers, or at domains that don’t exist or accept no mail, may be refused. | |
| Password | At least 8 characters, with a digit, an uppercase letter, a lowercase letter and a special character. |
Real names in any script are accepted, e.g. O'Brien, Zoë, José-María, 李 or Booking.com Holdings. Names made only of digits or symbols (e.g. 12345, ---) are refused.
Sign-up API reference
The portal signs customers up with this public endpoint. You only need it if you build your own sign-up screen. To create customers under your partner account, use Onboard Customer instead.
Request
Method: POST
Endpoint: /v1/customers
Auth: none (public)
The partner the customer belongs to is worked out from the domain the request comes from.
| Field | Type | Required | Rules |
|---|---|---|---|
email | string | Yes | Valid email. May be refused if the domain is a temporary-email provider, doesn’t exist or accepts no mail. |
password | string | Yes | At least 8 characters, with a digit, an uppercase letter, a lowercase letter and a special character. |
type | string | Yes | INDIVIDUAL, BUSINESS, MERCHANT or PARTNER. |
firstName | string | Yes | 1–50 characters after trimming; must contain a letter; no @, ://, www., < or >. |
lastName | string | Yes | Same rules as firstName. |
companyName | string | For BUSINESS, MERCHANT, PARTNER | Same rules as firstName. Ignored for INDIVIDUAL. |
terms | boolean | Yes | Must be true. |
privacyPolicy | boolean | Yes | Must be true. |
marketingConsent | boolean | Yes | Whether the customer agrees to marketing emails. |
captchaToken | string | When the security check is enforced | A Cloudflare Turnstile token. Single use: get a new one for every attempt. |
curl -X POST "https://sandbox.api.relm.co/v1/customers" \
-H "Content-Type: application/json" \
-d '{
"email": "amara@moonconsulting.mu",
"password": "Str0ng!Password",
"type": "BUSINESS",
"firstName": "Amara",
"lastName": "Okafor",
"companyName": "Moon Consulting Ltd",
"terms": true,
"privacyPolicy": true,
"marketingConsent": false,
"captchaToken": "<turnstile token>"
}'
Response
201 Created. Sign-up logs the customer straight in.
{
"success": true,
"message": "Registration successful. Please check your email for verification.",
"data": {
"mfaRequired": false,
"token": "<access JWT>",
"refreshToken": "<refresh JWT>",
"totpEnabled": false,
"customer": {
"id": "…",
"email": "amara@moonconsulting.mu",
"firstName": "Amara",
"lastName": "Okafor",
"emailVerified": false,
"accountApplicationStatus": "…",
"passcodeSet": false,
"userId": "…",
"customerType": "BUSINESS",
"questionnaireStatus": null,
"productActivations": {},
"roles": ["CUSTOMER", "ACCOUNT_ADMIN"]
}
}
}
The first and last name are saved at sign-up. For Business, Merchant and Partner accounts the company is created at sign-up too; completing the profile later can rename it.
After sign-up
The customer still has to verify their email and complete their profile (phone, country and product activation). Don’t use empty names to decide whether to show the profile step: names and the company already exist straight after sign-up.
Errors
Validation messages come back in the error.msg array, each prefixed with the field name.
| HTTP | Message in msg[] | When |
|---|---|---|
| 400 | firstName is required / lastName is required | Missing or blank. |
| 400 | companyName is required for business, merchant and partner sign-ups | A business-type sign-up without a company name. |
| 400 | <field> must contain at least one letter | Digits or symbols only, e.g. 12345, ---. |
| 400 | <field> must be a name, not an email address, link or markup | Contains @, ://, www., < or >. |
| 400 | <field> must not exceed 50 characters | Too long. |
| 400 | email The email domain is not supported | Temporary-email provider, or a domain that doesn’t exist or accepts no mail. |
| 400 | email Please provide a valid email, password rules, terms / privacy policy | Invalid email or password, or terms not accepted. |
| 400 / 403 | Captcha error | The security check token is missing or invalid. |
| — | Email already registered | An account with this email already exists. |