Delete a profile
- Path
/profiles- Auth
- Secret key · server only
const url = 'https://releva.ai/api/v0/profiles';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://releva.ai/api/v0/profiles \ --header 'Authorization: Bearer <token>'Erases the profile found by each identifier you pass, together with every profile merged into it.
The profile is gone immediately; a later write with the same email creates a new, empty profile.
202 is returned even when nothing matched or no parameter was given, so check with GET if you need confirmation.
phoneNumber must be in international form here (no national-format conversion).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”+ followed by the international dialling code and number, digits only (2-32 characters).
International form, + encoded as %2B.
Responses
Section titled “Responses”Accepted for asynchronous processing.
object
Example
{}Authentication or validation error.
object
Human-readable error. Several validation errors are joined with a space.
Examples
{ "message": "The 'email' field must be a valid e-mail."}{ "message": "phoneNumber must be a valid telephone number starting with + and international code, e.g. +1. Got 0888 instead."}{ "message": "The object '' contains forbidden keys: 'foo'."}{ "message": "Authorization header is missing."}The domain is disabled.
object
Human-readable error. Several validation errors are joined with a space.
Example
{ "message": "Domain is disabled. Please reach out to support@releva.ai to enable it."}Unexpected server error.
object
Human-readable error. Several validation errors are joined with a space.
Example
{ "message": "An internal error occurred."}