Request an access token

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
🚧

Token expiration

Note that authorization token expires every 5 minutes. In real applications you want token to be obtained programatically.

var httpClient = new HttpClient();  
httpClient.BaseAddress = new Uri("https://accounts.rydoo.com");
httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes($"{clientId}:{clientSecret}");));
var requestContent = new List<KeyValuePair<string, string>>
{
    new KeyValuePair<string, string>("grant_type", "client_credentials"),
    new KeyValuePair<string, string>("scope", "company structure:read structure:write expenses:read expenses:write fields:read fields:write users:read users:write"),
};
var response = await httpClient.PostAsync("connect/token", new FormUrlEncodedContent(requestContent));
Form Data
string
Defaults to client_credentials

The type of api oauth client (use client_credentials)

string

The parts of the Rydoo API to which you want access

string

The client id generated for your client by the application

string

The client secret generated for your client

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json