get__settings_organization
GET /settings/organization
Get Organization Settings
Retrieve the current user's organization settings. The user must be authenticated and associated with an organization to access these settings.
TypeScript Client Library
// Using the Flashback TypeScript client
import { FlashbackClient } from '@flashback/client';
const client = new FlashbackClient({ accessToken: 'your-access-token' });
// Get organization settings
try {
const result = await client.settings.organization.get();
console.log('Organization settings:', result);
} catch (error) {
console.error('Failed to get organization settings:', error);
}Code Samples
# You can also use wget
curl -X GET https://backend.flashback.tech/settings/organization \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'GET https://backend.flashback.tech/settings/organization HTTP/1.1
Host: localhost:3000
Accept: application/json
Authorization: Bearer {access-token}const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/settings/organization',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Example responses
200 Response
404 Response
500 Response
Responses
Response Schema
Status Code 200
» success
boolean
true
none
Indicates if the request was successful
» settings
object
true
none
Organization settings object containing key-value pairs
Status Code 404
» success
boolean
true
none
Always false for error responses
» message
string
true
none
Error message describing the issue
Status Code 500
» success
boolean
true
none
Always false for error responses
» message
string
true
none
Error message describing the issue
» error
string
false
none
Additional error details if available
DTOs
GetSettingsResponse
SettingsErrorResponse
Last updated
Was this helpful?