Get the registry document
GET
/orgs/{org}/config/registry
const url = 'https://api.sloose.com/orgs/org_9f3c/config/registry';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.sloose.com/orgs/org_9f3c/config/registry \ --header 'Authorization: Bearer <token>'The RegistryDoc as it currently stands — the modules, their keys and singular names, and their match defaults.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
The org id the session was issued for. A token for one org can never read another.
string
Example
org_9f3cThe org id the session was issued for. A token for one org can never read another.
Responses
Section titled “Responses”The registry document.
Media typeapplication/json
object
version
integer
modules
required
Array<object>
object
key
required
string
apiName
required
string
label
required
string
singular
required
string
color
string
defaultEnabled
boolean
uniqueFields
Array<string>
defaultDuplicateCheck
object
searchField
string
searchMethod
string
expression
string
excludedFields
Array<string>
seedMappings
object
key
additional properties
object
mode
string
source
string | null
staticValue
string | null
transform
string | null
skip
boolean
searchField
string | null
searchMethod
string | null
searchExpression
string | null
patch
object
when
Array<string>
overwrite
string
expressionContext
string
apiDelayMs
integer
systemExcludedFields
Array<string>
dateFormat
string
Example
{ "modules": [ { "seedMappings": { "additionalProperty": { "mode": "column", "patch": { "when": [ "pending" ], "overwrite": "always" } } } } ], "dateFormat": "DMY"}No bearer, or one that is expired, revoked or no longer resolves to a member.
Media typeapplication/json
The error envelope every non-2xx answer uses.
object
error
required
Human-readable explanation.
string
code
Machine-readable reason. Absent on a few legacy 400s.
string
key
additional properties
Examplegenerated
{ "error": "example", "code": "example"}The bearer’s role is too low, or it was issued for a different org.
Media typeapplication/json
The error envelope every non-2xx answer uses.
object
error
required
Human-readable explanation.
string
code
Machine-readable reason. Absent on a few legacy 400s.
string
key
additional properties
Examplegenerated
{ "error": "example", "code": "example"}