cURL
curl --request POST \ --url https://app.promptingco.com/api/v1/apps/{appId}/domains \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "domain": "<string>" } '
{ "ok": true, "data": { "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "deletedAt": "2023-11-07T05:31:56Z", "domain": "<string>", "scope": "app", "productId": null, "appId": "<string>", "cloudflareId": "<string>", "type": "web", "origin": "<string>" } }
Organization-scoped API key. Available scopes:
1
1 - 253
^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$
web
metric
redirect
1 - 2048
Successful response
true
Show child attributes