POST
/
v2
/
attachment
curl --request POST \
  --url https://api.sandbox.solidfi.com/v2/attachment \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "reference_id": "ctp_8e5541c8a9e50c3af3b0daacf9175130",
  "label": "formation"
}'
{
  "id": "att_a8d2b191fa0e960d8e49a4bfd320e07b",
  "reference_id": "ctp_8e5541c8a9e50c3af3b0daacf9175130",
  "label": "formation",
  "url": "http://bucket.s3-website-us-east-1.amazonaws.com",
  "created_at": "2024-04-04T11:06:00Z"
}

Headers

api-key
string
required

API key is required to call Solid APIs. You can view and manage your API keys in the Solid dashboard.

Body

application/json
reference_id
string

resource id to which the attachment belongs

label
string

label of the attachment

Response

201
application/json
Create an Attachment
id
string

unique id of the attachment created

reference_id
string

resource id to which the attachment belongs

label
string

label of the attachment

url
string

url to upload the attachment

timestamps
object