Get layout usage

Retrieves information about workflows that use the specified layout by its unique identifier layoutId

GET
/v2/layouts/{layoutId}/usage

Authorization

Authorization<token>

API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".

In: header

Path Parameters

layoutIdRequiredstring

Header Parameters

idempotency-keystring

A header for idempotency purposes

Response Body

OK

workflowsRequiredarray<object>

Array of workflows that use this layout

export interface Response {
  /**
   * Array of workflows that use this layout
   */
  workflows: WorkflowInfoDto[];
}
export interface WorkflowInfoDto {
  /**
   * The name of the workflow
   */
  name: string;
  /**
   * The unique identifier of the workflow
   */
  workflowId: string;
}
 
curl -X GET "https://api.novu.co/v2/layouts/string/usage" \
  -H "idempotency-key: string" \
  -H "Authorization: <token>"
{
  "workflows": [
    {
      "name": "Welcome Email",
      "workflowId": "welcome-email"
    }
  ]
}

On this page

No Headings
Edit this page on GitHub