---
updatedAt: 2025-06-16T21:00:04.000Z
agentTools:
  projectIndex: https://docs.livelike.com/llms.txt
---

# Create a Base Role

> 📘 Producer Access Token Authentication is required to access this resource.

> 📘 Permission ids, keys and a role template key can be passed in the request body to create a base role. A union set of the permissions represented by these keys, including permissions in the role template, are added to the new base role.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "engagement-suite",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://cf-blast.livelikecdn.com/api/v1"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/base-roles/": {
      "post": {
        "summary": "Create a Base Role",
        "description": "",
        "operationId": "create-a-base-role",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "key"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "name of the base role to be created"
                  },
                  "description": {
                    "type": "string",
                    "description": "description for the base role being created"
                  },
                  "key": {
                    "type": "string",
                    "description": "key of the base role to be created"
                  },
                  "permission_ids": {
                    "type": "array",
                    "description": "Array of permission_ids to add to the base role",
                    "items": {
                      "type": "string"
                    }
                  },
                  "permission_keys": {
                    "type": "array",
                    "description": "Array of permission_keys to add to the base role",
                    "items": {
                      "type": "string"
                    }
                  },
                  "role_template_id": {
                    "type": "string",
                    "description": "id of the role template to add permissions from"
                  },
                  "role_template_key": {
                    "type": "string",
                    "description": "key of the role template to add permissions from"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"id\": \"5678b4cf-7ec5-46fb-b54b-449c689325d0\",\n  \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/base-roles/5678b4cf-7ec5-46fb-b54b-449c689325d0/\",\n  \"client_id\": \"ROA1TtZi9rGdYeGVRdHCs5oBc3J3o4fOgNlh1FPN\",\n  \"name\": \"Test Base Role\",\n  \"description\": \"Example Description\",\n  \"key\": \"test-base-role\",\n  \"permissions\": [\n    {\n      \"id\": \"8ef670c4-a740-4758-ac1d-70121c5550d5\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/8ef670c4-a740-4758-ac1d-70121c5550d5/\",\n      \"name\": \"Publish Alert\",\n      \"description\": \"\",\n      \"key\": \"publish-alert\",\n      \"created_at\": \"2023-12-29T00:15:49.123000Z\"\n    },\n    {\n      \"id\": \"3612b68b-b8a8-40c4-969d-4bee21dfb0f4\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/3612b68b-b8a8-40c4-969d-4bee21dfb0f4/\",\n      \"name\": \"Publish Cheer Meter\",\n      \"description\": \"\",\n      \"key\": \"publish-cheer-meter\",\n      \"created_at\": \"2023-12-29T00:15:49.124000Z\"\n    },\n    {\n      \"id\": \"c5f851ff-3464-4b29-a939-9d7ad914f847\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/c5f851ff-3464-4b29-a939-9d7ad914f847/\",\n      \"name\": \"Publish Emoji Poll\",\n      \"description\": \"\",\n      \"key\": \"publish-emoji-poll\",\n      \"created_at\": \"2023-12-29T00:15:49.121000Z\"\n    },\n    {\n      \"id\": \"db8b0f39-db51-46d4-b1ee-a396af2cafd9\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/db8b0f39-db51-46d4-b1ee-a396af2cafd9/\",\n      \"name\": \"Publish Emoji Slider\",\n      \"description\": \"\",\n      \"key\": \"publish-emoji-slider\",\n      \"created_at\": \"2023-12-29T00:15:49.125000Z\"\n    },\n    {\n      \"id\": \"82931bc8-03c7-4d8f-bdcd-07b65365c7c9\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/82931bc8-03c7-4d8f-bdcd-07b65365c7c9/\",\n      \"name\": \"Publish Image Number Prediction\",\n      \"description\": \"\",\n      \"key\": \"publish-image-number-prediction\",\n      \"created_at\": \"2023-12-29T00:15:49.120000Z\"\n    },\n    {\n      \"id\": \"47a96dac-d8be-4056-b5f2-7ff96ca1a8d7\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/47a96dac-d8be-4056-b5f2-7ff96ca1a8d7/\",\n      \"name\": \"Publish Image Number Prediction Follow Up\",\n      \"description\": \"\",\n      \"key\": \"publish-image-number-prediction-follow-up\",\n      \"created_at\": \"2023-12-29T00:15:49.121000Z\"\n    },\n    {\n      \"id\": \"e1878156-c3c3-450c-a6c6-2ea9f5451f8f\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/e1878156-c3c3-450c-a6c6-2ea9f5451f8f/\",\n      \"name\": \"Publish Image Poll\",\n      \"description\": \"\",\n      \"key\": \"publish-image-poll\",\n      \"created_at\": \"2023-12-29T00:15:49.122000Z\"\n    },\n    {\n      \"id\": \"ab0fc1d0-7d9d-4a17-b0b7-2f4cafa39dc7\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/ab0fc1d0-7d9d-4a17-b0b7-2f4cafa39dc7/\",\n      \"name\": \"Publish Image Prediction\",\n      \"description\": \"\",\n      \"key\": \"publish-image-prediction\",\n      \"created_at\": \"2023-12-29T00:15:49.120000Z\"\n    },\n    {\n      \"id\": \"d2503318-6787-4699-92ea-5757edc3cdfc\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/d2503318-6787-4699-92ea-5757edc3cdfc/\",\n      \"name\": \"Publish Image Prediction Follow Up\",\n      \"description\": \"\",\n      \"key\": \"publish-image-prediction-follow-up\",\n      \"created_at\": \"2023-12-29T00:15:49.120000Z\"\n    },\n    {\n      \"id\": \"0230458f-3605-42ff-90a3-fb2159096b00\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/0230458f-3605-42ff-90a3-fb2159096b00/\",\n      \"name\": \"Publish Image Quiz\",\n      \"description\": \"\",\n      \"key\": \"publish-image-quiz\",\n      \"created_at\": \"2023-12-29T00:15:49.122000Z\"\n    },\n    {\n      \"id\": \"5833fc79-78b8-4a18-9e91-bccd6888c2c8\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/5833fc79-78b8-4a18-9e91-bccd6888c2c8/\",\n      \"name\": \"Publish Rich Post\",\n      \"description\": \"\",\n      \"key\": \"publish-rich-post\",\n      \"created_at\": \"2023-12-29T00:15:49.125000Z\"\n    },\n    {\n      \"id\": \"32ffa141-ecc4-41a9-9df6-079d1002529e\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/32ffa141-ecc4-41a9-9df6-079d1002529e/\",\n      \"name\": \"Publish Social Embed\",\n      \"description\": \"\",\n      \"key\": \"publish-social-embed\",\n      \"created_at\": \"2023-12-29T00:15:49.126000Z\"\n    },\n    {\n      \"id\": \"5ed5f80d-ed8e-490a-a375-3320ce6d0709\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/5ed5f80d-ed8e-490a-a375-3320ce6d0709/\",\n      \"name\": \"Publish Text Ask\",\n      \"description\": \"\",\n      \"key\": \"publish-text-ask\",\n      \"created_at\": \"2023-12-29T00:15:49.117000Z\"\n    },\n    {\n      \"id\": \"226cef32-69c7-4755-ab0e-cb7aa5eebc70\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/226cef32-69c7-4755-ab0e-cb7aa5eebc70/\",\n      \"name\": \"Publish Text Poll\",\n      \"description\": \"\",\n      \"key\": \"publish-text-poll\",\n      \"created_at\": \"2023-12-29T00:15:49.118000Z\"\n    },\n    {\n      \"id\": \"6540488a-b743-4833-b49a-07d95cf240cc\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/6540488a-b743-4833-b49a-07d95cf240cc/\",\n      \"name\": \"Publish Text Prediction\",\n      \"description\": \"\",\n      \"key\": \"publish-text-prediction\",\n      \"created_at\": \"2023-12-29T00:15:49.118000Z\"\n    },\n    {\n      \"id\": \"da048ab9-4437-42f9-86f7-5ddf49aebed6\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/da048ab9-4437-42f9-86f7-5ddf49aebed6/\",\n      \"name\": \"Publish Text Prediction Follow Up\",\n      \"description\": \"\",\n      \"key\": \"publish-text-prediction-follow-up\",\n      \"created_at\": \"2023-12-29T00:15:49.119000Z\"\n    },\n    {\n      \"id\": \"5e3c4b67-fe52-4c7a-a2f5-ec3c04844028\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/5e3c4b67-fe52-4c7a-a2f5-ec3c04844028/\",\n      \"name\": \"Publish Text Quiz\",\n      \"description\": \"\",\n      \"key\": \"publish-text-quiz\",\n      \"created_at\": \"2023-12-29T00:15:49.117000Z\"\n    },\n    {\n      \"id\": \"f30dec26-5212-4fa1-89f7-ff825db07846\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/f30dec26-5212-4fa1-89f7-ff825db07846/\",\n      \"name\": \"Publish Twitter Spotlight\",\n      \"description\": \"\",\n      \"key\": \"publish-twitter-spotlight\",\n      \"created_at\": \"2023-12-29T00:15:49.123000Z\"\n    },\n    {\n      \"id\": \"c0796a69-da84-41a8-b5b9-780e35e5267e\",\n      \"url\": \"https://cf-blast-dig.livelikecdn.com/api/v1/permissions/c0796a69-da84-41a8-b5b9-780e35e5267e/\",\n      \"name\": \"Publish Video Alert\",\n      \"description\": \"\",\n      \"key\": \"publish-video-alert\",\n      \"created_at\": \"2023-12-29T00:15:49.124000Z\"\n    }\n  ],\n  \"created_at\": \"2025-05-21T11:03:06.841084Z\",\n  \"is_active\": true\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "5678b4cf-7ec5-46fb-b54b-449c689325d0"
                    },
                    "url": {
                      "type": "string",
                      "example": "https://cf-blast-dig.livelikecdn.com/api/v1/base-roles/5678b4cf-7ec5-46fb-b54b-449c689325d0/"
                    },
                    "client_id": {
                      "type": "string",
                      "example": "ROA1TtZi9rGdYeGVRdHCs5oBc3J3o4fOgNlh1FPN"
                    },
                    "name": {
                      "type": "string",
                      "example": "Test Base Role"
                    },
                    "description": {
                      "type": "string",
                      "example": "Example Description"
                    },
                    "key": {
                      "type": "string",
                      "example": "test-base-role"
                    },
                    "permissions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "8ef670c4-a740-4758-ac1d-70121c5550d5"
                          },
                          "url": {
                            "type": "string",
                            "example": "https://cf-blast-dig.livelikecdn.com/api/v1/permissions/8ef670c4-a740-4758-ac1d-70121c5550d5/"
                          },
                          "name": {
                            "type": "string",
                            "example": "Publish Alert"
                          },
                          "description": {
                            "type": "string",
                            "example": ""
                          },
                          "key": {
                            "type": "string",
                            "example": "publish-alert"
                          },
                          "created_at": {
                            "type": "string",
                            "example": "2023-12-29T00:15:49.123000Z"
                          }
                        }
                      }
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2025-05-21T11:03:06.841084Z"
                    },
                    "is_active": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```