Managers Pro
GET /managers
Retrieve a list of all existing managers on your site – including the owner.
bash
curl --location 'https://api.libib.com/managers' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'x-api-user: YOUR_API_USER'php
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.libib.com/managers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_TIMEOUT => 15,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"x-api-key: YOUR_API_KEY",
"x-api-user: YOUR_API_USER"
),
));
$response = curl_exec($curl);
curl_close($curl);
// Valid responses are always in JSON
$data = json_decode($response);python
import requests
url = "https://api.libib.com/managers"
headers = {
'x-api-key': 'YOUR_API_KEY',
'x-api-user': 'YOUR_API_USER',
}
response = requests.request("GET", url, headers=headers)
data = response.json()JSON Result Details
| Field | Description |
|---|---|
total | The total managers on an account – includes the owner. |
managers | A list of each manager's details – first_name, last_name, email, role. |
json
{
"total": 3,
"managers": [
{
"first_name": "Larry",
"last_name": "McMurtry",
"email": "lonesome@example.com",
"role": "owner"
},
{
"first_name": "Samwise",
"last_name": "Gamgee",
"email": "samthewise@example.com",
"role": "lender"
},
{
"first_name": "Anaïs",
"last_name": "Nin",
"email": "angela@example.com",
"role": "admin"
}
]
}GET managers/{id}
Retrieve a single manager by passing the manager's email address as an identifier.
bash
curl --location 'https://api.libib.com/managers/samgee@example.com' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'x-api-user: YOUR_API_USER'php
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.libib.com/managers/samgee@example.com",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_TIMEOUT => 15,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"x-api-key: YOUR_API_KEY",
"x-api-user: YOUR_API_USER"
),
));
$response = curl_exec($curl);
curl_close($curl);
// Valid responses are always in JSON
$data = json_decode($response);python
import requests
url = "https://api.libib.com/managers/samgee@example.com"
headers = {
'x-api-key': 'YOUR_API_KEY',
'x-api-user': 'YOUR_API_USER',
}
response = requests.request("GET", url, headers=headers)
data = response.json()JSON Result Details
| Field | Description |
|---|---|
first_name | The manager's given name. |
last_name | The manager's last name. |
email | The manager's email address used for authentication. |
role | The manager's permission level: owner, admin, manager, or lender. |
json
{
"first_name": "Samwise",
"last_name": "Gamgee",
"email": "samthewise@example.com",
"role": "admin"
}POST /managers
Create a new manager in the account. Must have open manager seats for this method to succeed.
bash
curl --location --request POST 'https://api.libib.com/managers?first_name=Scott&last_name=Pilgrim&email=sbobomb@example.com&password=aqbq340as94ikd242ffp&role=admin' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'x-api-user: YOUR_API_USER'php
<?php
$curl = curl_init();
$params = array(
'first_name' => 'Scott',
'last_name' => 'Pilgrim',
'email' => 'sbobomb@example.com',
'password' => 'aqbq340as94ikd242ffp',
'role' => 'admin'
);
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.libib.com/managers?" . http_build_query($params),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => array(
"x-api-key: YOUR_API_KEY",
"x-api-user: YOUR_API_USER"
),
));
$response = curl_exec($curl);
curl_close($curl);
// Valid responses are always in JSON
$data = json_decode($response);python
import requests
url = "https://api.libib.com/managers"
headers = {
'x-api-key': 'YOUR_API_KEY',
'x-api-user': 'YOUR_API_USER',
}
params = {
'first_name': 'Scott',
'last_name': 'Pilgrim',
'email': 'sbobomb@example.com',
'password': 'aqbq340as94ikd242ffp',
'role': 'admin'
}
response = requests.post(url, headers=headers, params=params)
data = response.json()Query Parameters
| Field | Required | Description |
|---|---|---|
first_name | Yes | Manager's first name. |
last_name | Yes | Manager's last name. |
email | Yes | Manager's email (must be unique). |
password | Yes | Minimum 8 characters. |
role | Yes | Allowed values: admin, manager, or lender. |
Assigning Collections
If user has a manager or lender role, assigning collections must be completed by the account owner using the website.
JSON Result Details
Password is never returned in result set.
| Field | Description |
|---|---|
first_name | Manager's first name. |
last_name | Manager's last name. |
email | Manager's email. |
role | The managerial role assigned to the user. |
json
{
"first_name": "Scott",
"last_name": "Pilgrim",
"email": "sbobomb@example.com",
"role": "admin"
}DELETE managers/{id}
Remove a single manager by their email address. You cannot remove the owner account via this method. Owners must delete their entire account manually.
bash
curl --location --request DELETE 'https://api.libib.com/managers/samgee@example.com' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'x-api-user: YOUR_API_USER'php
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.libib.com/managers/samgee@example.com",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_TIMEOUT => 15,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => array(
"x-api-key: YOUR_API_KEY",
"x-api-user: YOUR_API_USER"
),
));
$response = curl_exec($curl);
curl_close($curl);python
import requests
url = "https://api.libib.com/managers/samgee@example.com"
headers = {
'x-api-key': 'YOUR_API_KEY',
'x-api-user': 'YOUR_API_USER',
}
response = requests.delete(url, headers=headers)Response
A successful deletion returns status code 204 with no body content.