Skip to content

Get Me ​

GEThttps://api.repliz.com/public/me

Returns 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.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): profile, which every token has
  • Access Tier: Every plan, Free included

Example Request ​

bash
curl -X GET "https://api.repliz.com/public/me" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
javascript
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);
javascript
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.

Response ​

json
{
  "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"
}
json
{
  "code": 401,
  "message": "unauthorize"
}
FieldTypeDescription
idstringStable ID of who signed in. Use it, not the email, to link the Repliz user to a user of your app.
typestringowner for the main account, operator for an operator of a main account.
namestringName of who signed in.
emailstringEmail of who signed in.
isEmailVerifiedbooleanWhether Repliz verified the email. Always false for an operator, whose email is typed in by the main account.
picturestring | nullProfile picture URL of the main account, or null. Operators have none.
planstringfree, standard, premium, or gold. An operator has the plan of the main account. The plan decides which APIs answer, see Access Tiers.
expiredAtstring | nullWhen 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.