Skip to main content

Get settings for own user

GET 

https://api.aleph-alpha.com/users/me

Returns details of this user. Can be called by a user which has access to this user id or by an admin for any user.

Responses

OK

Schema
    idnumberrequired

    User ID

    emailstringrequired

    Email address of the user

    rolestringrequired

    Role of the user

    credits_remainingnumberrequired

    Remaining credits for this user

    invoice_allowedbooleanrequired

    Is this user post-paid?

    out_of_credits_thresholdintegerrequired

    Threshold for out-of-credits notification. If the threshold gets crossed with a task, then we trigger an email.

    terms_of_service_versionstringrequired

    Version string of the terms of service that the user has accepted

Authorization: http

name: tokentype: httpscheme: bearerdescription: Can be generated in your [Aleph Alpha profile](https://app.aleph-alpha.com/profile)
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.aleph-alpha.com/users/me");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.aleph-alpha.com
Auth
ResponseClear

Click the Send API Request button above and see the response here!