English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/meReturns who is behind the credentials: their ID, name, email, profile picture, and plan. Apps that use Login with Repliz call it right after getting a token, to know who signed in.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizprofile, which every token hascurl -X GET "https://api.repliz.com/public/me" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"import axios from 'axios';
const response = await axios.get('https://api.repliz.com/public/me', {
headers: {
Authorization: 'Bearer YOUR_ACCESS_TOKEN',
},
});
console.log(response.data);const response = await fetch('https://api.repliz.com/public/me', {
headers: {
Authorization: 'Bearer YOUR_ACCESS_TOKEN',
},
});
const data = await response.json();
console.log(data);With your own keys, send Basic Auth instead, as on every other endpoint.
{
"id": "6879b98097fc8c8a78d1d4c1",
"type": "owner",
"name": "Azickri",
"email": "[email protected]",
"isEmailVerified": true,
"picture": "https://lh3.googleusercontent.com/a/ACg8ocJ",
"plan": "gold",
"expiredAt": "2026-12-31T00:00:00.000Z"
}{
"code": 401,
"message": "unauthorize"
}| Field | Type | Description |
|---|---|---|
id | string | Stable ID of who signed in. Use it, not the email, to link the Repliz user to a user of your app. |
type | string | owner for the main account, operator for an operator of a main account. |
name | string | Name of who signed in. |
email | string | Email of who signed in. |
isEmailVerified | boolean | Whether Repliz verified the email. Always false for an operator, whose email is typed in by the main account. |
picture | string | null | Profile picture URL of the main account, or null. Operators have none. |
plan | string | free, standard, premium, or gold. An operator has the plan of the main account. The plan decides which APIs answer, see Access Tiers. |
expiredAt | string | null | When the plan ends, or null. |
Operators
An operator signs in as themselves and works on the accounts the main account gave them, so id is the operator's ID and type is operator. Their email isn't verified by Repliz: don't sign them in to an existing user of your app by matching the email.