Create a distributor
curl --request POST \
--url https://api.kamino.finance/distributors \
--header 'Content-Type: application/json' \
--data '
{
"name": "Sample Distributor"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Sample Distributor'})
};
fetch('https://api.kamino.finance/distributors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/distributors"
payload = { "name": "Sample Distributor" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)false{
"code": "ex4mp"
}{
"error": "Invalid query request",
"details": [
{
"code": "invalid_union",
"errors": [
[
{
"code": "custom",
"path": [],
"message": "Invalid date string"
}
],
[
{
"expected": "number",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected number, received string"
}
]
],
"path": [
"start"
],
"message": "Invalid input"
}
]
}{
"error": "Not authorized for this request. Please include the basic auth headers."
}{
"error": "Resource already exists"
}{
"error": "An internal error occurred"
}Distributors
Create a distributor
Registers a distributor under a unique name and returns its generated 5-character memo code. Private (authorized) API access only, please add a basic auth header to your request.
POST
/
distributors
Create a distributor
curl --request POST \
--url https://api.kamino.finance/distributors \
--header 'Content-Type: application/json' \
--data '
{
"name": "Sample Distributor"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Sample Distributor'})
};
fetch('https://api.kamino.finance/distributors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/distributors"
payload = { "name": "Sample Distributor" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)false{
"code": "ex4mp"
}{
"error": "Invalid query request",
"details": [
{
"code": "invalid_union",
"errors": [
[
{
"code": "custom",
"path": [],
"message": "Invalid date string"
}
],
[
{
"expected": "number",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected number, received string"
}
]
],
"path": [
"start"
],
"message": "Invalid input"
}
]
}{
"error": "Not authorized for this request. Please include the basic auth headers."
}{
"error": "Resource already exists"
}{
"error": "An internal error occurred"
}