# Get rep created opps by day chart `GET` `/api/v1/crm-connections/{crm_connection_id}/bookbuilder/reps/{rep_id}/charts/created-opps-by-day` Returns a per-day count of opportunities created by the rep over the requested date window, in the running user's timezone. Opportunity selection respects the rep pipeline criteria configured in the Gradient Works managed package; "created by" reflects the configured opportunity- creator field if set, else ``CreatedById``. Days with zero activity are gap-filled. The ``scope`` query param filters to opportunities whose account is in the rep's book (default: all accounts). ## Path parameters | Name | Type | Required | Description | |------|------|----------|-------------| | crm_connection_id | string | yes | UUID of the CRM connection | | rep_id | string | yes | Salesforce User ID of the rep | ## Query parameters | Name | Type | Required | Description | |------|------|----------|-------------| | start_date | string | yes | Start of the date window (inclusive), formatted as YYYY-MM-DD. | | end_date | string | yes | End of the date window (inclusive), formatted as YYYY-MM-DD. | | scope | string | no | Filter to opportunities whose account is in the rep's book. | ## Response `200 OK` — `application/json` | Field | Type | Description | |-------|------|-------------| | chart | string | Chart identifier (e.g. activities-by-day) | | start_date | string | — | | end_date | string | — | | data | object | Map of YYYY-MM-DD → count for that day. Days with zero activity are gap-filled with 0. | ## Errors | Status | Description | |--------|-------------| | 400 | Bad Request | | 403 | Forbidden | | 404 | Not Found | | 422 | Unprocessable Entity | | 502 | Bad Gateway |