Deploy a Widget

Deploy a widget

To deploy a widget, send a POST request on /widgets/deployments.
POST https://api.didomi.io/widgets/deployments?organization_id=YOUR_ORG_ID
{
"widget_id": "WIDGET_ID"
}
Note that if you choose to embed your widget, you have to support authentication on your side. To do so, please follow our dedicated documentation.

Get all deployments

To list all deployments, send a GET request on /widgets/deployments.
GET https://api.didomi.io/widgets/deployments?organization_id=YOUR_ORG_ID
[
{
"id": "String",
"created_at": "Date",
"updated_at": "Date",
"organization_id": "String",
"widget_id": "String",
"config": {}
"deploymen_id": "String",
}
]
Optional query parameters:
  • $limit: number of max results to return
  • $skip: Number of results to skip
  • $sort: object representing sorting options. Accepts properties to sort as keys and -1 or 1 for sort direction. Example: {"created_at":1,"updated_at":1}
    • created_at
    • updated_at

Get a deployment

To find a deployment, send a GET request on /widgets/deployments/{id}.
GET https://api.didomi.io/widgets/deployments/{id}?organization_id=YOUR_ORG_ID
{
"id": "String",
"created_at": "Date",
"updated_at": "Date",
"organization_id": "String",
"widget_id": "String",
"config": {}
"deploymen_id": "String",
}