Open a session
const url = 'https://api.eianalytic.com/ApiWeb.svc/Login';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"user@example.com","password":"••••••••"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.eianalytic.com/ApiWeb.svc/Login \ --header 'Content-Type: application/json' \ --data '{ "email": "user@example.com", "password": "••••••••" }'Exchanges account credentials for one token per database the account
can reach. Each returned DbApi pairs a database with the token that
authorises calls against it.
The session expires after 24 hours without activity.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
{ "email": "user@example.com", "password": "••••••••"}Responses
Section titled “Responses”One entry per database available to the account.
object
The Key half of every response envelope.
object
0 means OK. See the Conventions page for the full table.
Present on some responses; empty in the documented examples.
object
A database paired with the token that authorises calls against it.
object
One EI-Analytic™ database.
object
Storage quota in GB.
Percentage of the quota in use.
Whether the authenticated account owns this database.
A .NET-serialised timestamp of the form /Date(1566511365000-0500)/:
milliseconds since the Unix epoch, followed by a UTC offset. Note that
other endpoints return plain yyyy-MM-dd HH:mm:ss strings instead —
the two formats coexist in this API.
The database token returned by Login. Sent in the request body, not
in a header.
Example
[ { "Key": { "StatusNumber": 0, "Description": "OK" }, "Value": [ { "DataBase": { "Name": "eidb_mecanica", "DateTimeExp": "/Date(1566511365000-0500)/" } } ] }]