Skip to main content

Me API

Me endpoints exposed by the Devotel CPaaS API Base path: /api/v1/me Endpoint count: 14

List campaign-drafts

GET /api/v1/me/campaign-drafts
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

List favorites

GET /api/v1/me/favorites
List the authenticated caller’s pinned dial targets (speed-dial favorites) ordered by sort_order then creation time — the dialpad’s one-tap call surface. Use it to populate the Favorites tab on a softphone or mobile dialer. Scoped strictly to the signed-in user; a row id leaked from another user never resolves here.
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

List generated-reports

GET /api/v1/me/generated-reports
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

Get predictive-activation schedule

GET /api/v1/me/predictive-activation-schedule
Return the caller’s per-model auto-activation schedule intent for the CDP Predictive Models panel — which predictive models re-materialise their ranked population into a campaign segment on a cadence (hourly/daily/weekly), how many top-ranked profiles per run, and the segment-name template. Scoped strictly to the signed-in user (data.schedule is null when no schedule has been saved).
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

List recommendations-draft

GET /api/v1/me/recommendations-draft
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

List ring-rules

GET /api/v1/me/ring-rules
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

Create a favorite

POST /api/v1/me/favorites
Pin a new dial target to the caller’s favorites so it renders as a one-tap entry on the softphone/dialpad. Caps each user at 50 pins (409 FAVORITE_LIMIT_REACHED when full) and rejects a duplicate target (409 FAVORITE_ALREADY_EXISTS). The target format is checked against target_kind: pstn values must be E.164 and sip values must start with sip: (422 otherwise). Favorites store dial INTENT only — placing a call to a pinned target routes through the normal outbound calling surface.
string
Stripe-style idempotency token. Pass a stable, client-generated value (1-255 chars) to dedupe retries on transient timeouts. The same key+credential+path replays the original response for 24h on 2xx (5min on 4xx, 30s on 5xx). Returns 409 if a concurrent request with the same key is already in flight; replayed responses include the Idempotency-Replay: true response header.
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.
string (enum: pstn|extension|contact_id|sip)
required
What the pinned dial target is: pstn (a public E.164 phone number, e.g. +442071234567), extension (a short internal extension), contact_id (a CRM/directory reference), or sip (a SIP URI beginning sip:). Drives validation of target_value.
string
required
The dial target itself. Format must match target_kind: E.164 for pstn (422 otherwise), a sip:-prefixed URI for sip, free-form for extension and contact_id.
string | null
Display label the dialpad shows for this pin (≤ 64 chars). Omit or pass null to render the target itself.
integer
Position in the favorites list — lower sorts first. Defaults to 0 (top).

Update campaign-drafts

PUT /api/v1/me/campaign-drafts
string
Stripe-style idempotency token. Pass a stable, client-generated value (1-255 chars) to dedupe retries on transient timeouts. The same key+credential+path replays the original response for 24h on 2xx (5min on 4xx, 30s on 5xx). Returns 409 if a concurrent request with the same key is already in flight; replayed responses include the Idempotency-Replay: true response header.
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

Update generated-reports

PUT /api/v1/me/generated-reports
string
Stripe-style idempotency token. Pass a stable, client-generated value (1-255 chars) to dedupe retries on transient timeouts. The same key+credential+path replays the original response for 24h on 2xx (5min on 4xx, 30s on 5xx). Returns 409 if a concurrent request with the same key is already in flight; replayed responses include the Idempotency-Replay: true response header.
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

Replace predictive-activation schedule

PUT /api/v1/me/predictive-activation-schedule
Replace the caller’s per-model auto-activation schedule intent wholesale — the dashboard sends its full validated map on every settled change, so a replace is the natural verb. Each entry pins enabled (an explicit OFF survives), the cadence, the per-run topN (1–500), and a human-readable nameTemplate rendered into the new segment’s name. Accepted model keys mirror the server-owned registry (churn_propensity, conversion_intent, lifetime_value, engagement_fatigue); any other key is a 400. Merged into the caller’s preferences without clobbering siblings.
string
Stripe-style idempotency token. Pass a stable, client-generated value (1-255 chars) to dedupe retries on transient timeouts. The same key+credential+path replays the original response for 24h on 2xx (5min on 4xx, 30s on 5xx). Returns 409 if a concurrent request with the same key is already in flight; replayed responses include the Idempotency-Replay: true response header.
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.
object
required
Per-model schedule intent map (partial record — only toggled models).

Update recommendations-draft

PUT /api/v1/me/recommendations-draft
string
Stripe-style idempotency token. Pass a stable, client-generated value (1-255 chars) to dedupe retries on transient timeouts. The same key+credential+path replays the original response for 24h on 2xx (5min on 4xx, 30s on 5xx). Returns 409 if a concurrent request with the same key is already in flight; replayed responses include the Idempotency-Replay: true response header.
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

Update ring-rules

PUT /api/v1/me/ring-rules
string
Stripe-style idempotency token. Pass a stable, client-generated value (1-255 chars) to dedupe retries on transient timeouts. The same key+credential+path replays the original response for 24h on 2xx (5min on 4xx, 30s on 5xx). Returns 409 if a concurrent request with the same key is already in flight; replayed responses include the Idempotency-Replay: true response header.
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

Update a favorite

PATCH /api/v1/me/favorites/{id}
Relabel or reorder one of the caller’s favorites. Only label and sort_order are mutable — the dial target itself is fixed at creation; delete and re-pin to change it. Fields omitted from the body are left untouched, and a body with no recognised field returns 200 with data.updated: false. Returns 404 when the id does not belong to the caller (cross-user ids resolve to not-found, never another user’s row).
string
required
Favorite id (favorite_ + suffix), as returned by create or list.
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.
string | null
Replacement display label (≤ 64 chars), or null to clear the label.
integer
New position in the favorites list — lower sorts first.

Delete a favorite

DELETE /api/v1/me/favorites/{id}
Remove one of the caller’s pinned favorites so it no longer renders on the dialpad Favorites tab. Returns 404 when the id does not belong to the caller — a row id leaked from another user can never be deleted through this operation.
string
required
Favorite id (favorite_ + suffix), as returned by create or list.
string (enum: true|false)
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.