Skip to content

Who am I

GET
/api/integration/v1/me
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.

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"
]
}
}

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
}
}