Welcome to Microshare’s API documentation!
This API allows you to create and manage your data within Microshare’s data lake.
To quickly get started, click on the button below to run the Microshare collection in Postman:
Or manually download and import the collection and the environment to your Postman.
Shares represent your data stored in Microshare's data lake
recType |
string | Record type using the dot notation format (eg. io.microshare.test) |
---|---|---|
id |
ObjectId | An auto-generated unique identifier for the share |
data |
JSON Object | The data object is where your data is stored in our data lake |
Request and revoke tokens used to authenticate to our API
Request an Authentification token required to use this API.
You will need to provide username, password, as well as a valid API Key. You can manage your API keys in our Keys Console.
The default scope is ALL:ALL
, but you can replace it to request tokens
that will allow limited operations. For example, if the scope is
SHARE:READ
the token will only allow you to read Shares.
curl -X POST -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" "https://auth.microshare.io/oauth2/token?username={{username}}&password={{password}}&client_id={{apikey}}&grant_type=password&scope=ALL:ALL"
POST /oauth2/token?username={{username}}&password={{password}}&client_id={{apikey}}&grant_type=password&scope=ALL:ALL HTTP/1.1
Host: auth.microshare.io
Upload your data and easily share it with the Share API
Retrieve one share by recType
and object id
Retrieve all shares under a specific recType
Parameter | Type | Description |
---|---|---|
details |
boolean | true will return matching objects with their
details, false will only return main information |
page |
int | Specifies the requested page, defaults to 1 |
perPage |
int | Specifies the number of objects to be returned per page, defaults to 999 |
sort |
string | Specifies a comma-delimited list of field names to apply ascending alphabetical (0-9a-z) sorting eg. &sort=name &sort=name,tstamp &sort=data.priority |
Retrieve all shares under a specific recType
and containing one or
several tags
. Specify as many tags
as you need, and
objects containing all of these tags will be returned.
Parameter | Type | Description |
---|---|---|
details |
boolean | true will return matching objects with their
details, false will only return main information |
page |
int | Specifies the requested page, defaults to 1 |
perPage |
int | Specifies the number of objects to be returned per page, defaults to 999 |
sort |
string | Specifies a comma-delimited list of field names to apply ascending alphabetical (0-9a-z) sorting eg. &sort=name &sort=name,tstamp &sort=data.priority |
Create a new share by recType
. This inserts a new record into the
Microshare data lake.
You must include a record type using the dot notation format (eg.
io.microshare.test
).
Create a new share by recType
, with searchable tags
. This
inserts a new record into the Microshare data lake.
You must include a record type using the dot notation format (eg.
io.microshare.test
).
Tags allow you to later search objects with the same recType
with a
GET
request. You can specify as many tags as you need.
Permanently delete one share by recType
and object id