Get your sign-in limits
How long you stay signed in to the Control Panel before you are asked to sign in again, how long a trusted browser skips your two-factor code, and the values you can choose. These are your own settings, whatever company the token works in.
Returns
200 Your sign-in limits.
Fields of the 200 answer
The values you can choose, shortest first.
Fields of each item
A length of time, as its key.
8h16h1d3d7dThe length in words, such as 16 hours.
How long you stay signed in, counted from the moment you sign in.
Fields
A length of time, as its key.
8h16h1d3d7dThe length in words, such as 16 hours.
Whether you have never chosen a value, so the default applies.
Always false for customers and agencies.
How long a trusted browser skips your two-factor code. Never longer than session_limit.
Fields
A length of time, as its key.
8h16h1d3d7dThe length in words, such as 16 hours.
Whether you have two-factor authentication on. Without it no browser can be trusted.
Whether you have never chosen a value, so the default applies.
If it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | Send a valid token as Authorization: Bearer <token>. |
403 | scope_required | Use a token with the scope named in scope. |
404 | feature_off | This feature is not on for your organisation yet. |
429 | rate_limited | Wait for the seconds in Retry-After. |
Reasons are listed by name in Errors and refusals.
The same task elsewhere
curl https://manage.corefinity.com/api/user/sign-in-settings \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json"use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->get('https://manage.corefinity.com/api/user/sign-in-settings');
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/user/sign-in-settings', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
},
});
// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);import os
import requests
res = requests.get(
"https://manage.corefinity.com/api/user/sign-in-settings",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
)
data = res.json() if res.content else None{
"choices": [
{
"key": "8h",
"label": "8 hours",
"minutes": 480
},
{
"key": "16h",
"label": "16 hours",
"minutes": 960
},
{
"key": "1d",
"label": "1 day",
"minutes": 1440
},
{
"key": "3d",
"label": "3 days",
"minutes": 4320
},
{
"key": "7d",
"label": "7 days",
"minutes": 10080
}
],
"session_limit": {
"default": true,
"key": "8h",
"label": "8 hours",
"minutes": 480
},
"staff_cap": false,
"two_factor_trust": {
"applies": true,
"default": true,
"key": "8h",
"label": "8 hours",
"minutes": 480
}
}{
"message": "Unauthenticated."
}{
"code": "scope_required",
"message": "This access token does not have the destructive scope this needs. Use a token with the destructive scope.",
"reason": "scope_required",
"scope": "destructive"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "rate_limited",
"message": "Too many requests. Try again in 60 seconds.",
"reason": "rate_limited",
"retry_after_seconds": 60
}