Retrieve User
Retrieve information about an user with the specified ID.
The /user endpoint provides access to information about a specific user, including basic details such as their name and email address.
To retrieve user information, you can specify the user ID as a parameter in the API request. If you don't specify a user ID, the endpoint will return information about the currently authenticated user.
To access this endpoint, you must provide authentication with a JWT token or API key.
GET https://api.instantuploader.com/user
Example:
/user/?userId=0258a873456fdfc2ac1abfdca6441
Query Parameters
Name
Type
Description
userId
String
Specify the user ID you want to receive
GET /api/user/?userId={userId} HTTP/1.1
Host: api.instantuploader.com
Content-Type: application/json
Authorization: Bearer "<your_token_or_api_key>" const axios = require('axios');
const token = "<your_token_or_api_key>";
const accountId = "<your_account_id>";
const url = `https://api.instantuploader.com/user/?userId={userId}`;
axios.get(url, {
headers: {
"Authorization": `Bearer ${token}`,
"Content-Type": "application/json"
}
}).then(response => {
console.log(response.data);
}).catch(error => {
console.log(error);
});<?php
$token = "<your_token_or_api_key>";
$accountId = "<your_account_id>";
$url = "https://api.instantuploader.com/user/?userId={userId}";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Authorization: Bearer ' . $token
));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>Last updated