Create an attachment
Changed onCreates an attachment on the specified entry under the specified tab.
Request
- Base URLhttps://api.us.cr4ce.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Defines the response type.
Defines the languages included in the response. If non are provided, the account default language is returned.
Value all overrides any other values present.
You can request multiple languages using a comma-separated string of languages.
The selected language must be supported by your account or a 400 error is returned.
Request body
Example request
{
"filename": "hello.xls",
"data": "aGVsbG8gd29ybGQ=",
"order": 1,
"attachment_fields": {
"text-slug": "Some short text",
"numeric-slug": 42,
"checkbox-slug": true,
"radio-slug": "option-key-1",
"checkboxlist-slug": [
"option-key-1",
"option-key-2"
],
"country-slug": "AU",
"date-slug": "2026-06-16"
}
}Response
Attachment created.
Example response
{
"token": "AbCdEfGhIjKlMnOp",
"link": "https://api.au.cr4ce.com/attachment/AbCdEfGhIjKlMnOp",
"file": {
"filename": "example.pdf",
"token": "QrStUvWxYzAbCdEf",
"link": "https://api.au.cr4ce.com/file/QrStUvWxYzAbCdEf"
}
}Changes
- info
api tag
Attachmentsadded - info
api tag
Attachmentremoved
- info
- info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status
- info