User Metadata
Returns the metadata associated with a user.
URL
GET https://api.synodic.ai/v0/{user}
Headers
- x-api-key:
YOUR_API_KEY
(string, optional)
Path Parameters
- {user}: username (string)
Example Request
- Bash
- Python
- Node.js
- Rust
curl -X GET "https://api.synodic.ai/v0/{user}" -H "x-api-key: YOUR_API_KEY"
import requests
headers = {
"x-api-key": "YOUR_API_KEY"
}
response = requests.get("https://api.synodic.ai/v0/{user}", headers=headers)
print(response.json())
const axios = require('axios');
const headers = {
"x-api-key": "YOUR_API_KEY"
};
axios.get("https://api.synodic.ai/v0/{user}", { headers })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
use reqwest;
fn main() {
let client = reqwest::blocking::Client::new();
let response = client.get("https://api.synodic.ai/v0/{user}")
.header("x-api-key", "YOUR_API_KEY")
.send()
.expect("Failed to send request");
println!("{:?}", response.text());
}
Example Response
- Current User Metadata
- Other User's Metadata
{
"created_at": 1716899295,
"photo_url": "https://synodic-profile.s3.amazonaws.com/lowoyylw.png",
"repositories": ["example/coffee", "example/cars"],
"autotrain_units": 150,
"autolabel_images": 495,
"inference_frames": 45903,
"models_trained": 2,
"payment_details": true,
"plan": "pay-as-you-go"
}
{
"created_at": 1716899295,
"photo_url": "https://synodic-profile.s3.amazonaws.com/lowoyylw.png",
"repositories": ["example/coffee", "example/cars"]
}