Use the dashboard to create an API key, then call the public API with either
Authorization: Bearer or X-Api-Key. Store the key in an environment variable
for local testing:
bash
export DF_API_KEY="df_live_key_..."
Create a score request body:
json
{
"idempotencyKey": "score-demo-001",
"items": [
{
"id": "post-1",
"text": "The new product update introduces faster exports and clearer team permissions."
}
]
}
For rewrite jobs, use /v1/rewrite-jobs with the same authentication pattern.
Rewrite responses include the original and rewritten is_ai values plus the
selected rewrittenText.
For a runnable local example that creates, polls, lists, paginates, cancels, and
handles API errors, use
examples/api-client-python.