# Workspace marketing pull

`POST /marketing/pull` · Rivier · workspace

Pull the connected ad platforms' reports now instead of waiting for the hourly pull. Reads only; it uses the connections' own credentials and only the accounts the person ticked.

- Scope: workspace:write
- Mcp: rivier_marketing_pull
- Graphql: Mutation.workspaceMarketingPull
- Sdk: workspace.marketing.pull
- Cli: workspace marketing pull

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "platforms": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 40
      },
      "maxItems": 10
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/marketing/pull' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "platforms": [
    "string"
  ],
  "from": "string",
  "to": "string"
}'
```
