Freenalytics API (1.0.1)

Download OpenAPI specification:Download

This site contains the documentation for the Freenalytics API.

Auth

This section contains the supported operations for Auth.

Check if user registration is enabled.

Check if user registration is enabled on the server. If it is disabled, users will not be able to register new accounts.

Responses

Response samples

Content type
application/json
{
  • "value": {
    }
}

Register a new user account.

Register a new user account. This route will only work if the server has enabled user registration.

Request Body schema: application/json

Request body for RegisterRequestSchema.

username
required
string [ 3 .. 20 ] characters ^[\w._-]*$
password
required
string >= 8 characters
locale
required
string
Value: "en"

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "password": "stringst",
  • "locale": "en"
}

Response samples

Content type
application/json
{
  • "value": {
    }
}

Login with your user account.

Login with your user account. Responds with a bearer token to authenticate further requests.

Request Body schema: application/json

Request body for LoginRequestSchema.

username
required
string
password
required
string

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "value": {
    }
}

Change your user account password.

Change your user account password.

Authorizations:
bearer_token
Request Body schema: application/json

Request body for ChangePasswordRequestSchema.

old_password
required
string
new_password
required
string

Responses

Request samples

Content type
application/json
{
  • "old_password": "string",
  • "new_password": "string"
}

Response samples

Content type
application/json
{
  • "value": {
    }
}

User

This section contains the supported operations for User.

Get all users.

Get all registered users in the platform.

Authorizations:
bearer_token

Responses

Response samples

Content type
application/json
{
  • "value": {
    }
}

Get the current user.

Get the user information for the requesting user.

Authorizations:
bearer_token

Responses

Response samples

Content type
application/json
{
  • "value": {
    }
}

Update the current user.

Update the user information for the requesting user.

Authorizations:
bearer_token
path Parameters
username
required
string

The username of the user to get.

Request Body schema: application/json

Request body for UserUpdateRequestSchema.

locale
string
Value: "en"

Responses

Request samples

Content type
application/json
{
  • "locale": "en"
}

Response samples

Content type
application/json
{
  • "value": {
    }
}

Get a user by their username.

Get a user by their username.

Authorizations:
bearer_token
path Parameters
username
required
string

The username of the user to get.

Responses

Response samples

Content type
application/json
{
  • "value": {
    }
}

Application

This section contains the supported operations for Application.

Get all applications for the requesting user.

Get all applications for the requesting user.

Authorizations:
bearer_token

Responses

Response samples

Content type
application/json
{
  • "value": {
    }
}

Create a new application for the requesting user.

Create a new application for the requesting user. The schema field in the request body should be a valid JSON Schema that describes the data that will be uploaded in the future.

Authorizations:
bearer_token
Request Body schema: application/json

Request body for ApplicationCreateRequestSchema.

name
required
string
type
required
string
Enum: "mobile" "web" "server" "desktop" "other"
schema
required
string
Array of objects
Default: []

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "type": "mobile",
  • "schema": "string",
  • "connectors": [ ]
}

Response samples

Content type
application/json
{
  • "value": {
    }
}

Get an application by domain for the requesting user.

Get an application by domain for the requesting user.

Authorizations:
bearer_token
path Parameters
domain
required
string

The domain of the application to get.

Responses

Response samples

Content type
application/json
{
  • "value": {
    }
}

Update an application by domain for the requesting user.

Update an application by domain for the requesting user.

Authorizations:
bearer_token
path Parameters
domain
required
string

The domain of the application to update.

Request Body schema: application/json

Request body for ApplicationUpdateRequestSchema.

name
string
type
string
Enum: "mobile" "web" "server" "desktop" "other"
Array of objects

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "type": "mobile",
  • "connectors": []
}

Response samples

Content type
application/json
{
  • "value": {
    }
}

Delete an application by domain for the requesting user.

Delete an application by domain for the requesting user.

Authorizations:
bearer_token
path Parameters
domain
required
string

The domain of the application to delete.

Responses

Response samples

Content type
application/json
{
  • "value": {
    }
}

Create a new data entry for an application for the requesting user.

Create a new data entry for an application for the requesting user. The shape of the request body will depend on the schema that was used to create the application.

Authorizations:
bearer_token
path Parameters
domain
required
string

The domain of the application to upload the data to.

Request Body schema: application/json

Request body for ApplicationDataRequestSchema.

example
required
string

Responses

Request samples

Content type
application/json
{
  • "example": "string"
}

Response samples

Content type
application/json
{
  • "value": {
    }
}

Get data entries for an application for the requesting user.

Get paginated data entries for an application for the requesting user in descending order by creation date.

Authorizations:
bearer_token
path Parameters
domain
required
string

The domain of the application to upload the data to.

query Parameters
start
number

The index cursor where to start the list of data entries. Defaults to 0.

limit
number

The number of data entries to return. Defaults to 50.

Responses

Response samples

Content type
application/json
{
  • "value": {
    }
}

Export all data entries for an application for the requesting user as CSV.

Export all data entries for an application for the requesting user as CSV.

Authorizations:
bearer_token
path Parameters
domain
required
string

The domain of the application to upload the data to.

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "status": 401,
  • "error": {
    }
}