Workspaces

POST /public/v1/do-not-contact

Batch-add LinkedIn URLs to the workspace Do Not Contact list. Accepts person, company, and school URLs. Entries are enqueued and applied asynchronously; the block then applies workspace-wide at both add time and send time. Known limitation: DNC entries are keyed per API user, so an identity your user already holds on another workspace's list cannot currently be re-recorded for this workspace — such entries are skipped (and logged internally) rather than applied.

POST /public/v1/do-not-contact

POST /public/v1/do-not-contact

curl --request POST \
  --url 'https://api.joinvalley.co/public/v1/do-not-contact' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "value"
}'
{
  "statusCode": 1,
  "status": true,
  "message": "<string>",
  "data": {
    "accepted": 1,
    "rejected": [
      {
        "url": "<string>",
        "reason": "<string>"
      }
    ]
  }
}

Default Response

Authorizations

  • x-api-key string required header

    Your Valley API key.

Request Body

application/json
  • workspaceId string required
  • urls[] string required array

Response

application/json
  • statusCode number
  • status boolean
  • message string
  • data object
    + Show Child Attributes
    • accepted number
    • rejected[] object array
      + Show Child Attributes
      • url string
      • reason string