Skip to content

Data models

The models correspond to the schemas in the OpenAPI specification. Fields not listed can appear depending on the environment; ignore fields your integration does not recognize.

OperationResponse

Common envelope of operation responses.

FieldTypeDescription
statusintegerResult of the operation. 0 indicates success.
descriptionstringDescription of the result returned by the API.
apiverstringAPI and product version, in the v2 (9.0.1) format.
userstringUser of the operation.
lengthinteger (int64)Size, in bytes, when applicable.
timestringResponse date and time in ISO 8601 (RFC 3339) format, with the server time zone, for example 2026-11-07T14:03:21-03:00. In API v1, the field used the 2026-11-07 14:03:21.123456789 -0300 -03 format.

LoginResponse

200 response of /auth/login.

FieldTypeDescription
statusinteger0 on success.
descriptionstringDescription of the result.
apiverstringAPI and product version, in the v2 (9.0.1) format.
userstringAuthenticated user.
urllinkstring (URI)Portal access link.
timestringResponse date and time in ISO 8601 (RFC 3339) format, with the server time zone, for example 2026-11-07T14:03:21-03:00. In API v1, the field used the 2026-11-07 14:03:21.123456789 -0300 -03 format.

The session token is not part of the JSON; it is sent in the __Host-dirl_session cookie.

MfaChallengeResponse

206 response of /auth/login when MFA is required.

FieldTypeDescription
statusintegerMFA step: 1 PIN by email or SMS, 2 registered TOTP, 3 TOTP registration.
descriptionstringChallenge description.
apiverstringAPI and product version, in the v2 (9.0.1) format.
userstringUser.
linkURLstring (URI)Full secure URL: /auth/mfa (status 1 and 2) or /auth/mfa/register (status 3).
secretstringStatus 3: TOTP secret in Base32. Empty in status 2; absent in status 1. Sensitive data.
qrcodestringStatus 3: secret QR code, 200 × 200 PNG image in URL-safe Base64. Empty in status 2; absent in status 1.
timestringResponse date and time in ISO 8601 (RFC 3339) format, with the server time zone, for example 2026-11-07T14:03:21-03:00. In API v1, the field used the 2026-11-07 14:03:21.123456789 -0300 -03 format.

MfaRegisterResponse

200 response of /auth/mfa/register. Does not establish a session.

FieldTypeDescription
statusinteger0 on success.
descriptionstringResult description.
apiverstringAPI and product version, in the v2 (9.0.1) format.
userstringUser.
lengthintegerAlways 0.
timestringResponse date and time.

SecureLinkResponse

Response of /auth/firstaccess and /auth/forget.

FieldTypeDescription
statusinteger0 on success.
descriptionstringDescription of the result.
apiverstringAPI and product version, in the v2 (9.0.1) format.
userstringUser.
linkURLstring (URI)Secure link sent to the user.
timestringResponse date and time in ISO 8601 (RFC 3339) format, with the server time zone, for example 2026-11-07T14:03:21-03:00. In API v1, the field used the 2026-11-07 14:03:21.123456789 -0300 -03 format.

TokenResponse

200 response of /auth/token and /oauth2/token. All fields are always returned.

FieldTypeDescription
access_tokenstringAccess token.
issued_token_typestringurn:ietf:params:oauth:token-type:access_token.
token_typestringBearer.
expires_ininteger (int64)Token validity, in seconds. Varies with the environment.
scopestringURI of the configured API. It does not represent a list of permissions.

OAuthError

400 response of /auth/token and /oauth2/token.

FieldTypeDescription
errorintegerNumeric code of the condition reported by the validation.
error_descriptionstringReason for the failure.
error_uristring (URI)API URI.

UploadResponse

200 response of /upload. Includes the fields of OperationResponse and:

FieldTypeDescription
idstringName or identifier of the received file.
destinationstringTransfer destination.
lengthinteger (int64)Size received, in bytes.
linkURLarray of string (URI)Notification links generated, if any.

FileListResponse

200 response of /download/list and /download/list/backup. Includes the fields of OperationResponse and:

FieldTypeDescription
filesarray of FileEntryFiles on the page. Can be empty.
page_nextstringIndex of the next page.

FileEntry

FieldTypeDescription
idintegerIdentifier of the file in the listing.
namestringFile name.
lengthinteger (int64)Size, in bytes.
modifiedinteger (int64)Modification date, in milliseconds since 1970-01-01 UTC.
linkURLstring (URI)Signed download link. Use the full URL.

DownloadPinResponse

200 response of /download/pin. Includes the fields of OperationResponse and:

FieldTypeDescription
emailstringRecipient email.
phonestringRecipient phone.
filestringFile name.
linkURLstring (URI)Secure download link.

ReportResponse

200 response of /report. Includes the fields of OperationResponse and:

FieldTypeDescription
pageintegerPage returned.
logsarray of objectsTransfer records of the query.