Skip to main content
Developer Marketing Microsoft 3651.0.0-beta.1

Preview a Microsoft 365 signature

Uses the employee resolver to preview one authorized sender and compose type. The response can include rendered HTML, text and the reason an assignment was skipped. Each connection has 30 previews per minute shared with the Portal.

POST/api/v1/marketing/microsoft-365/preview

Workspace automation for approved Dashio products. Each token is scoped to one Space and independently granted operations. Requests spend shared minute credits, and selected operation groups also share hourly quotas.

Required token scope is marketing:microsoft365:preview. Scopes are independent.

This operation uses 8 credits from a shared budget of 60 credits per token and 300 per Space each UTC minute. The rendering group shares 30 requests per token and 80 per Space each UTC hour.

Run these examples on a trusted server with DASHIO_API_TOKEN configured. Use a private terminal when inspecting response data. Examples send one request with a bounded timeout and do not retry automatically.

Authentication

Dashio developer token (HTTP Bearer) API authentication guide

Path parameters

None documented.

Query parameters

None documented.

Header parameters

None documented.

Request body

application/json · Required

Select a current directory user and sender address.

userIdstring (uuid)Required

No field description supplied.

senderAddressstring (email)Required

Maximum length is 254 characters. Maximum length: 254.

composeTypestringRequired

Allowed values: "newMail", "reply", "forward".

draftbooleanOptional

Set true to preview the saved draft policy. Omit to preview the published policy.

previewAtstring | null (date-time)Optional

Optional UTC test time. Null or omission uses the current server time.

Responses

Headers on every response

X-Request-Idstring (uuid)Optional

Server-generated ID to include in a support request.

200

One apply or skip decision and any rendered signature preview.

Response headers

RateLimit-LimitintegerOptional

Per-token capacity in the reported gateway window, expressed in requests of this operation. A shared Space budget also applies. Present when the request reaches the authenticated gateway. Minimum: 1.

RateLimit-RemainingintegerOptional

Requests of this operation remaining under the current token, Space and applicable operation-group quotas. Present when the request reaches the authenticated gateway. Minimum: 0.

RateLimit-ResetintegerOptional

Unix timestamp in seconds when the reported gateway quota resets. Present when the request reaches the authenticated gateway. Minimum: 0.

application/json

evaluatedAtstring (date-time)Optional

No field description supplied.

matchingPolicyIdsarray of string (uuid)Optional

Maximum items: 100.

resultobject | objectRequired

No field description supplied.

ruleNamestring | nullRequired

No field description supplied.

issuesarray of stringRequired

No field description supplied.

previewobject | nullRequired

No field description supplied.

400

The request fields, selectors or resource identifiers are invalid.

application/json

statusCodeintegerRequired

Minimum: 400. Maximum: 599.

statusMessagestringOptional

A safe explanation suitable for display.

dataobjectRequired

No field description supplied.

401

A valid Developer API bearer token is required.

Response headers

WWW-AuthenticatestringOptional

Bearer authentication challenge. A rejected token can include the invalid_token error.

application/json

Uses the same response body schema as HTTP 400.

402

An active eligible Marketing entitlement is required.

application/json

Uses the same response body schema as HTTP 400.

403

The token scope, current Space role or plan allowance does not permit this operation.

application/json

Uses the same response body schema as HTTP 400.

404

The resource was not found in the token Space or the operation is unavailable.

application/json

Uses the same response body schema as HTTP 400.

408

The request body could not be read before the deadline.

application/json

Uses the same response body schema as HTTP 400.

409

The revision, connection, quota reservation or current resource state conflicts with the request.

application/json

Uses the same response body schema as HTTP 400.

413

The request body exceeds the permitted size.

application/json

Uses the same response body schema as HTTP 400.

415

Content-Type must be application/json.

application/json

Uses the same response body schema as HTTP 400.

429

The request rate limit was reached. Edge traffic limits can also return 429.

Response headers

RateLimit-LimitintegerOptional

Per-token capacity in the reported gateway window, expressed in requests of this operation. A shared Space budget also applies. Present when the request reaches the authenticated gateway. Minimum: 1.

RateLimit-RemainingintegerOptional

Requests of this operation remaining under the current token, Space and applicable operation-group quotas. Present when the request reaches the authenticated gateway. Minimum: 0.

RateLimit-ResetintegerOptional

Unix timestamp in seconds when the reported gateway quota resets. Present when the request reaches the authenticated gateway. Minimum: 0.

Retry-AfterintegerOptional

Seconds to wait before retrying, when the limiting policy supplies a retry time. Minimum: 1.

application/json

Uses the same response body schema as HTTP 400.

503

The operation is temporarily unavailable.

application/json

Uses the same response body schema as HTTP 400.

Was this helpful?