Registration

Operations related to tenant & user registration with PromptEasy.eu API.

Get a list of countries

GET
https://api.prompteasy.eu/v1/countries

Response

A list of countries

Response fields application/json
Show child attributes
codestring
Example
BE
namestring
Example
Belgium

Authorization

ApiKeyAuthapiKey in header

Verify if an email domain is academic

GET
https://api.prompteasy.eu/v1/academic/verify

Parameters

emailstring<email>requiredquery

Response

200OKobject

Verification result

Response fields application/json
is_academicboolean

Authorization

ApiKeyAuthapiKey in header

Register a new user and tenant

POST
https://api.prompteasy.eu/v1/register

Body

application/json
namestringrequired
Example
John Doe
emailstringrequired
Example
foo@bar.invalid
tenant_namestring
Example
Acme Inc.
tenant_emailstring
Example
foo@bar.invalid
country_codestringrequired
Example
BE
is_individualbooleanrequired
Example
false
postal_codestring
Example
12345
vat_idstring
Example
BE1234567890
plan_typestringrequired
Example
premium
promotion_codestring | null
Example
PROMO50
terms_acceptedbooleanrequired
Example
true

Response

200OKobject

Registration completed successfully

Response fields application/json
messagestring
Example
Registration completed.
422Unprocessable EntityValidationError

Unprocessable Entity

Response fields application/json
messagestring
Example
Validation failed
Show child attributes
nameArray<string>

Authorization

ApiKeyAuthapiKey in header