English
English
Appearance
English
English
Appearance
Get started with the Repliz API by setting up your development environment.
Before integrating with the Repliz API, make sure you have:
cURLWARNING
Never put your API credentials in client-side code or public repositories. Keep them server-side.
Send all API requests to this base URL:
https://api.repliz.comThe Repliz API uses Basic Authentication. Your credentials need to be Base64-encoded and sent in the Authorization header with every request.
Format:
Authorization: Basic Base64(AccessKey:SecretKey)How to encode your credentials:
echo -n "YOUR_ACCESS_KEY:YOUR_SECRET_KEY" | base64curl -X GET "https://api.repliz.com/public/account?page=1&limit=20" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"import axios from 'axios';
const response = await axios.get('https://api.repliz.com/public/account', {
params: { page: 1, limit: 20 },
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
});
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const response = await fetch(
'https://api.repliz.com/public/account?page=1&limit=20',
{
headers: {
Authorization: `Basic ${credentials}`,
},
},
);
const data = await response.json();
console.log(data);TIP
Axios handles Base64 encoding automatically when you use the auth option. For cURL and Fetch, you'll need to encode your credentials manually.
Repliz provides a REST API that you can call from any HTTP client in your preferred language:
| Language | Recommended Library |
|---|---|
| JavaScript / Node.js | axios, fetch, node-fetch |
| Python | requests, httpx |
| PHP | Guzzle, cURL |
| Go | net/http |
| Ruby | httparty, faraday |
Once your credentials are ready, head over to the Quick Start guide to make your first API call.