Quick Start

Get your API keys

Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can generate an API key from your Dashboard Profile at any time.
Tips : Always use the x-www-form-urlencode header when making POST, PUT, PATCH or DELETE requests to our API.
Good to know: We authenticate your request via Neodrive-Api header, see example below.

Make your first request

To make your first request, send an authenticated request to the file endpoint. This will get you list of your files.
get
https://neodrive.my.id/api/v1/
files
List Files
Take a look at how you might call this method viacurl:
curl
PHP
Node Js (Axios)
curl --location --request GET 'https://neodrive.my.id/api/v1/files' \
--header 'neodrive-api: 625092296266470295046fd6bd9c44a5'
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://neodrive.my.id/api/v1/files',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'neodrive-api: 625092296266470295046fd6bd9c44a5'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
});
var config = {
method: 'get',
url: 'https://neodrive.my.id/api/v1/files',
headers: {
'neodrive-api': '625092296266470295046fd6bd9c44a5'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});