Skip to main content

Account and company

Sign in, find out who the token belongs to, read the details of the company the user works in, and check which version of the API is running.

Paths are relative to https://api.rushhourapp.com/api/v1. See the API reference overview for how to read each entry.

Sign-in​

MethodPathSummary
POST/Auth/LoginAuthenticates a user and returns a JWT token.

POST /Auth/Login​

Authenticates a user and returns a JWT token.

Required access: none — no token is needed.

Request body: LoginRequest (JSON).

Response: envelope; data is string.

Signed-in user​

MethodPathSummary
GET/App/UserGet the signed-in user and the company they are working in.
GET/App/UserDataGet the signed-in user, with additional profile data, and the company they are working in.

GET /App/User​

Get the signed-in user and the company they are working in.

Response: envelope; data is CompanyUser.

GET /App/UserData​

Get the signed-in user, with additional profile data, and the company they are working in.

Response: envelope; data is CompanyUser.

Company​

MethodPathSummary
GET/Company/InfoGet the details of the company the signed-in user is working in.
GET/Company/UserToCompaniesList the companies the signed-in user belongs to.

GET /Company/Info​

Get the details of the company the signed-in user is working in.

Response: envelope; data is Company.

GET /Company/UserToCompanies​

List the companies the signed-in user belongs to.

Parameters

NameInTypeRequiredDescription
ItemsPerPagequeryinteger (int32)No
Pagequeryinteger (int32)No
SearchTermquerystringNo
SortByquerystringNo
SortDirectionqueryinteger (int32)NoOne of: 0 (Ascending), 1 (Descending).

Response: envelope; data is CompanyDtoPagedList.

Version​

MethodPathSummary
GET/Settings/VersionGet the version of the API that is running.

GET /Settings/Version​

Get the version of the API that is running.

Required access: none — no token is needed.

Response: envelope; data has no documented shape.