Who am I
GET
/api/integration/v1/me
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://api.slflo.com/api/integration/v1/me"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.slflo.com/api/integration/v1/me")) .header("Authorization", "Bearer <token>") .method("GET", HttpRequest.BodyPublishers.noBody()) .build();HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.body());const url = 'https://api.slflo.com/api/integration/v1/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.slflo.com/api/integration/v1/me \ --header 'Authorization: Bearer <token>'The client, its company, scopes, token expiry and rate limit. Needs no scope; the first call to check settings.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Who am I
Media typeapplication/json
object
data
required
object
client
required
object
id
required
string
name
required
string
rate_limit_per_minute
required
integer format: int32
system
required
string
token_expires_at
required
string
token_prefix
required
string
company
required
object
code
required
string
id
required
string
name
required
string
scopes
required
Array<string>
Example
{ "data": { "client": { "id": "ic_01J9", "name": "D365 production", "rate_limit_per_minute": 120, "system": "DYNAMICS365", "token_expires_at": "2027-10-05T00:00:00Z", "token_prefix": "sfi_live_AB12CD34" }, "company": { "code": "t-demo", "id": "t-demo", "name": "Demo Distribution" }, "scopes": [ "invoices:read", "orders:read", "orders:write" ] }}default
Section titled “default”An error: the code says what, retryable whether to try again.
Media typeapplication/json
object
error
required
object
code
required
Stable code, e.g. SCOPE_MISSING, UNKNOWN_REFERENCE.
string
details
required
Field-level problems: {field, code}.
Array<object>
object
key
additional properties
string
message
required
What happened and how to fix it.
string
request_id
required
Quote it to support; it finds the server log.
string
retryable
required
Whether the same call may succeed later.
boolean
Example
{ "error": { "code": "SCOPE_MISSING", "details": [], "message": "This client does not hold the invoices:read scope.", "request_id": "req_01J9X4Q7T2M8P3NRT6V5WZ", "retryable": false }}
