Skip to main content
POST
Create Document

Authorizations

Authorization
string
header
required

Personal API token. Create via createUserApiToken endpoint.

Headers

x-role-type
enum<string>
required

Role context for the request. Use CLIENT_ORG_ADMIN for most integrations.

Available options:
CLIENT_ORG_ADMIN,
PAYROLL_ADMIN,
FINANCE_ADMIN,
TOKU_ADMIN

Body

application/json
roleInOrgID
string<uuid>
required
documentType
string
required
Example:

"GRANT_AGREEMENT"

documentName
string
required
Example:

"Grant Agreement - Jane Smith"

fileKey
string
required

S3 file key for the uploaded document

documentDescription
string
visibleToEmployee
boolean
Example:

true

visibleToClientAdmin
boolean
Example:

true

grantID
string<uuid>

Response

Document created

documentID
string<uuid>