Skip to content
Ryan Mark edited this page Jan 19, 2016 · 22 revisions

Autotune has a Web API built for the front-end javascript app. It can be used by other applications to do anything you're able to do with the Web UI.

Intro

The API endpoints exactly map to the application URLs you see when navigating the application. The API is entirely JSON-based. All data is returned as JSON, all request data must be JSON-formatted.

All requests must set the Accept header:

Accept: application/json

All POST,PUT requests must set the Content-Type header:

Content-Type: application/json

Authentication

Autotune requires a simple bearer token in your HTTP headers for API access:

Authorization: API-KEY auth=ABC123

You can create a machine account for accessing the API with the create_superuser rake task:

$ rake create_superuser[[email protected]]

You can grab the API key of an existing user with the get_api_key rake task:

$ rake get_api_key[[email protected]]

Errors

TK

Projects

TK

Blueprints

TK