Add a contributor

POST /contributors

This endpoint allows you to add new contacts or existing contacts as contributors of a request.

application/json

Body

Responses

POST /contributors
curl \
 -X POST https://api.usecollect.com/v1/contributors \
 -H "Content-Type: application/json" \
 -d '{"contact":{"data":{"brand":"Tesla","model":"Roadster"},"email":"elon@example.com","company":"Tesla","lastName":"Musk","firstName":"Elon"},"requestId":"xvr69EYLKXvTkfYuk"}'
Request examples
{
  "contact": {
    "data": {
      "brand": "Tesla",
      "model": "Roadster"
    },
    "email": "elon@example.com",
    "company": "Tesla",
    "lastName": "Musk",
    "firstName": "Elon"
  },
  "requestId": "xvr69EYLKXvTkfYuk"
}
{
  "contact": "WmTjsFknzHdmfs3Ra",
  "requestId": "xvr69EYLKXvTkfYuk"
}
Response examples (200)
{
  "errors": [],
  "request": {
    "_id": "nw42MmBsJoccgutST",
    "status": "pending",
    "contact": {
      "_id": "xtPWKQqcAk8MJfoz5",
      "email": "maincontact@example.com",
      "lastName": "Doe",
      "createdAt": "2022-07-03T13:51:27Z",
      "firstName": "John",
      "nbRequest": 5,
      "lastActivity": "2022-07-04T07:20:06Z"
    },
    "dueDate": "2022-07-11T21:59:00Z",
    "privacy": "private",
    "branding": {
      "useBranding": false
    },
    "createdAt": "2022-07-04T07:20:06Z",
    "portalUrl": "https://app.usecollect.com/portal/uGFRDeEL3Ct2uYo2c/nw42MmBsJoccgutST",
    "campaignId": "xvr69EYLKXvTkfYuk",
    "contributors": [
      {
        "_id": "WmTjsFknzHdmfs3Ra",
        "email": "johndoe@example.com",
        "lastName": "Musk",
        "createdAt": "2022-07-03T13:51:27Z",
        "firstName": "Elon"
      }
    ]
  }
}