Guide API reference API reference: Resources

API reference: Resources

On this page

GET /v1/companies/{companyId}/groups

Parameter In Type Required Notes
companyId path string (uuid) yes

Answers 200 with list of GroupResponse.

POST /v1/companies/{companyId}/groups

Parameter In Type Required Notes
companyId path string (uuid) yes

Body (application/json): GroupRequest

Answers 201 with GroupResponse.

DELETE /v1/companies/{companyId}/groups/{groupId}

Parameter In Type Required Notes
companyId path string (uuid) yes
groupId path string (uuid) yes

Answers 204.

GET /v1/companies/{companyId}/groups/{groupId}

Parameter In Type Required Notes
companyId path string (uuid) yes
groupId path string (uuid) yes

Answers 200 with GroupResponse.

PATCH /v1/companies/{companyId}/groups/{groupId}

Parameter In Type Required Notes
companyId path string (uuid) yes
groupId path string (uuid) yes

Body (application/json): GroupUpdateRequest

Answers 200 with GroupResponse.

DELETE /v1/companies/{companyId}/groups/{groupId}/members/{resourceId}

Parameter In Type Required Notes
companyId path string (uuid) yes
groupId path string (uuid) yes
resourceId path string (uuid) yes

Answers 204.

PUT /v1/companies/{companyId}/groups/{groupId}/members/{resourceId}

Parameter In Type Required Notes
companyId path string (uuid) yes
groupId path string (uuid) yes
resourceId path string (uuid) yes

Answers 204.

POST /v1/companies/{companyId}/resources

Parameter In Type Required Notes
companyId path string (uuid) yes

Body (application/json): CreateResourceRequest

Answers 201 with ResourceResponse.

GET /v1/companies/{companyId}/resources/{folderId}/documents

Parameter In Type Required Notes
companyId path string (uuid) yes
folderId path string (uuid) yes

Answers 200 with list of FileInfo.

PUT /v1/companies/{companyId}/resources/{folderId}/documents

Parameter In Type Required Notes
companyId path string (uuid) yes
folderId path string (uuid) yes
name query string yes
read query boolean
share query boolean

Answers 200 with FileInfo.

DELETE /v1/companies/{companyId}/resources/{folderId}/documents/{documentId}

Parameter In Type Required Notes
companyId path string (uuid) yes
folderId path string (uuid) yes
documentId path string (uuid) yes

Answers 204.

PATCH /v1/companies/{companyId}/resources/{folderId}/documents/{documentId}

Parameter In Type Required Notes
companyId path string (uuid) yes
folderId path string (uuid) yes
documentId path string (uuid) yes

Body (application/json): FileOptionsRequest

Answers 200 with FileInfo.

GET /v1/companies/{companyId}/resources/{folderId}/documents/{documentId}/content

Parameter In Type Required Notes
companyId path string (uuid) yes
folderId path string (uuid) yes
documentId path string (uuid) yes

Answers 200.

DELETE /v1/companies/{companyId}/resources/{resourceId}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 204.

GET /v1/companies/{companyId}/resources/{resourceId}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200 with ResourceResponse.

PATCH /v1/companies/{companyId}/resources/{resourceId}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Body (application/json): UpdateResourceRequest

Answers 200 with ResourceResponse.

GET /v1/companies/{companyId}/resources/{resourceId}/code

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200 with CodeInfo.

PUT /v1/companies/{companyId}/resources/{resourceId}/code

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Body (/): string

Answers 200 with CodeInfo.

POST /v1/companies/{companyId}/resources/{resourceId}/code/build

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200 with CodeInfo.

GET /v1/companies/{companyId}/resources/{resourceId}/code/script

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200 with string.

DELETE /v1/companies/{companyId}/resources/{resourceId}/database

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 204.

GET /v1/companies/{companyId}/resources/{resourceId}/database

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200 with DatabaseConnectionResponse.

PUT /v1/companies/{companyId}/resources/{resourceId}/database

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Body (application/json): DatabaseConnectionRequest

Answers 200 with DatabaseConnectionResponse.

GET /v1/companies/{companyId}/resources/{resourceId}/file

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200 with FileInfo.

PATCH /v1/companies/{companyId}/resources/{resourceId}/file

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Body (application/json): FileOptionsRequest

Answers 200 with FileInfo.

PUT /v1/companies/{companyId}/resources/{resourceId}/file

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
name query string yes
read query boolean
share query boolean

Answers 200 with FileInfo.

GET /v1/companies/{companyId}/resources/{resourceId}/file/content

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200.

GET /v1/companies/{companyId}/resources/{resourceId}/hooks

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200 with list of HookResponse.

POST /v1/companies/{companyId}/resources/{resourceId}/hooks

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Body (application/json): CreateHookRequest

Answers 201 with HookResponse.

DELETE /v1/companies/{companyId}/resources/{resourceId}/hooks/{hookId}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
hookId path string (uuid) yes

Answers 204.

GET /v1/companies/{companyId}/resources/{resourceId}/hooks/{hookId}/calls

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
hookId path string (uuid) yes
limit query integer (int32)
page query integer (int32)

Answers 200 with list of HookDeliveryResponse.

GET /v1/companies/{companyId}/resources/{resourceId}/methods

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200 with list of MethodResponse.

POST /v1/companies/{companyId}/resources/{resourceId}/methods

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Body (application/json): MethodRequest

Answers 201 with MethodResponse.

DELETE /v1/companies/{companyId}/resources/{resourceId}/methods/{methodId}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
methodId path string (uuid) yes

Answers 204.

PUT /v1/companies/{companyId}/resources/{resourceId}/methods/{methodId}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
methodId path string (uuid) yes

Body (application/json): MethodRequest

Answers 200 with MethodResponse.

POST /v1/companies/{companyId}/resources/{resourceId}/methods/{methodId}/try

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
methodId path string (uuid) yes

Body (application/json): InvokeRequest

Answers 200 with InvocationResult.

POST /v1/companies/{companyId}/resources/{resourceId}/move

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Body (application/json): MoveResourceRequest

Answers 200 with ResourceResponse.

GET /v1/companies/{companyId}/resources/{resourceId}/notes

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200 with list of NoteInfo.

POST /v1/companies/{companyId}/resources/{resourceId}/notes

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Body (application/json): NoteRequest

Answers 201 with NoteInfo.

DELETE /v1/companies/{companyId}/resources/{resourceId}/notes/{noteId}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
noteId path string (uuid) yes

Answers 204.

GET /v1/companies/{companyId}/resources/{resourceId}/notes/{noteId}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
noteId path string (uuid) yes

Answers 200 with Note.

PUT /v1/companies/{companyId}/resources/{resourceId}/notes/{noteId}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
noteId path string (uuid) yes

Body (application/json): NoteRequest

Answers 200 with NoteInfo.

GET /v1/companies/{companyId}/resources/{resourceId}/secrets

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes

Answers 200 with list of SecretInfo.

DELETE /v1/companies/{companyId}/resources/{resourceId}/secrets/{name}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
name path string yes

Answers 204.

PUT /v1/companies/{companyId}/resources/{resourceId}/secrets/{name}

Parameter In Type Required Notes
companyId path string (uuid) yes
resourceId path string (uuid) yes
name path string yes

Body (application/json): SecretRequest

Answers 204.

Types

GroupResponse

Field Type Required Notes
id string (uuid) yes
name string yes
verifierId string (uuid)
memberIds list of string (uuid) yes
createdAt string (date-time) yes

GroupRequest

Field Type Required Notes
name string yes at most 200 characters
verifierId string (uuid)

GroupUpdateRequest

Field Type Required Notes
name string at most 200 characters; at least 1 characters
verifierId string (uuid)

CreateResourceRequest

Field Type Required Notes
parentId string (uuid)
name string yes at most 200 characters
kind GROUP | EXTERNAL_API | FILE | JS_CODE | DATABASE | NOTES yes
type DATA | VERIFIER
accessStrategy ACCEPT_IDENTITY_POLICY | SELF_MANAGED
summary string at most 20000 characters
baseUrl string at most 2000 characters
authHeaders object
accessCheckPath string at most 500 characters
allowedHosts list of string at most 20 items

ResourceResponse

Field Type Required Notes
id string (uuid) yes
parentId string (uuid)
name string yes
kind GROUP | EXTERNAL_API | FILE | JS_CODE | DATABASE | NOTES yes
type DATA | VERIFIER yes
accessStrategy ACCEPT_IDENTITY_POLICY | SELF_MANAGED yes
summary string
baseUrl string
authHeaderNames list of string yes
accessCheckPath string
allowedHosts list of string
groupId string (uuid)
createdAt string (date-time) yes
updatedAt string (date-time) yes
access READ | MANAGE yes
notesFor string (uuid)
ownerIdentityId string (uuid)
notesId string (uuid)

FileInfo

Field Type Required Notes
id string (uuid) yes
resourceId string (uuid) yes
fileName string yes
contentType string
sizeBytes integer (int64) yes
sha256 string yes
readContents boolean yes
shareable boolean yes
status string yes
error string
textChars integer (int64)
chunkCount integer (int32)
embeddedChunks integer (int32) yes
uploadedAt string (date-time) yes
processedAt string (date-time)

FileOptionsRequest

Field Type Required Notes
readContents boolean
shareable boolean

UpdateResourceRequest

Field Type Required Notes
name string at most 200 characters; at least 1 characters
type DATA | VERIFIER
accessStrategy ACCEPT_IDENTITY_POLICY | SELF_MANAGED
summary string at most 20000 characters
baseUrl string at most 2000 characters
authHeaders object
accessCheckPath string at most 500 characters
allowedHosts list of string at most 20 items

CodeInfo

Field Type Required Notes
resourceId string (uuid) yes
status string yes
error string
exports list of string
missingFunctions list of string
sha256 string yes
scriptBytes integer (int32) yes
bundleBytes integer (int32)
uploadedAt string (date-time) yes
builtAt string (date-time)

DatabaseConnectionResponse

Field Type Required Notes
engine string yes
host string yes
port integer (int32) yes
databaseName string yes
username string yes
ssl string yes
mode string yes
aiNotes string
updatedAt string (date-time) yes

DatabaseConnectionRequest

Field Type Required Notes
engine string yes
host string yes at most 253 characters
port integer (int32) yes from 1; up to 65535
databaseName string yes at most 128 characters
username string yes at most 128 characters
password string at most 500 characters
ssl string yes
mode string yes
aiNotes string at most 10000 characters

HookResponse

Field Type Required Notes
id string (uuid) yes
resourceId string (uuid) yes
method string yes
label string
url string
hint string yes
expiresAt string (date-time)
maxCalls integer (int64)
calls integer (int64) yes
createdAt string (date-time) yes
lastCallAt string (date-time)

CreateHookRequest

Field Type Required Notes
method string yes at least 1 characters
label string at most 200 characters
expiresAt string (date-time)
maxCalls integer (int64)

HookDeliveryResponse

Field Type Required Notes
id string (uuid) yes
kind string yes
method string yes
status string yes
attempts integer (int32) yes
error string
answer string
createdAt string (date-time) yes
deliveredAt string (date-time)

MethodResponse

Field Type Required Notes
id string (uuid) yes
resourceId string (uuid) yes
name string yes
summary string yes
permission READ | WRITE | DELETE yes
httpMethod GET | POST | PUT | PATCH | DELETE
path string
sql string
params list of MethodParam yes
outputSummary string
createdAt string (date-time) yes
updatedAt string (date-time) yes

MethodRequest

Field Type Required Notes
name string yes at least 1 characters
summary string yes at most 5000 characters
permission READ | WRITE | DELETE yes
httpMethod GET | POST | PUT | PATCH | DELETE
path string at most 1000 characters; at least 1 characters
sql string at most 20000 characters; at least 1 characters
params list of MethodParam yes at most 50 items
outputSummary string at most 5000 characters

InvokeRequest

Field Type Required Notes
args object yes

InvocationResult

Field Type Required Notes
ok boolean yes
status integer (int32)
body any
error string
logs string

MoveResourceRequest

Field Type Required Notes
parentId string (uuid)

NoteInfo

Field Type Required Notes
id string (uuid) yes
notesId string (uuid) yes
title string yes
sizeBytes integer (int64) yes
status string yes
createdBy string yes
createdAt string (date-time) yes
updatedBy string yes
updatedAt string (date-time) yes

NoteRequest

Field Type Required Notes
title string yes at most 200 characters
text string yes at most 20000 characters

Note

Field Type Required Notes
info NoteInfo yes
text string yes

SecretInfo

Field Type Required Notes
name string yes
createdAt string (date-time) yes
updatedAt string (date-time) yes

SecretRequest

Field Type Required Notes
value string yes at least 1 characters

MethodParam

Field Type Required Notes
name string yes
type STRING | NUMBER | BOOLEAN | OBJECT | FILE yes
required boolean yes
description string
location PATH | QUERY | BODY yes
filledBy string

This page is made from /docs/v1/api/resources.md, the Markdown that AI assistants read. Questions: hi@determesh.com.