---
updatedAt: 2026-10-31T08:03:05.000Z
agentTools:
  projectIndex: https://developer.accelevents.com/llms.txt
---

# Create assets for direct upload provider/exhibitor streaming/lobby streaming

Create direct upload ID & direct upload URL for session / exhibitor / lobby. For direct upload session/exhibitor/lobby, first, you need to create direct upload assets on MUX. To do this you need to call this API which will prepare direct upload assets on MUX and will return `directUploadId` and `directUploadUrl` in response.

`directUploadId` is a unique reference to uploaded video, and it can be used to get further details about created assets to check this API (https://developer.accelevents.com/reference/update-upload-id-and-file-name). 

`directUploadUrl` is an endpoint where the uploaded video will be stored and used by MUX. Once assets are prepared using this API in the next step, you need to upload a video (https://docs.mux.com/guides/video/upload-files-directly) to directUploadUrl for streaming.

To call this API you need to send `sessionId` as path parameters.

For creating direct upload assets for exhibitor/lobby users, need to pass 0 as `sessionId` in the path parameter in this API.

This API can be used by authenticated users only, and it will require super admin/admin/staff level access.

Here is the description of response attributes, which returns to the form of JSON.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Attribute
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        **directUploadId** 
      </td>

      <td style={{ textAlign: "left" }}>
        Unique identifier for the Direct Upload.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        **directUploadUrl** 
      </td>

      <td style={{ textAlign: "left" }}>
        The URL to upload the associated source media to.
      </td>
    </tr>
  </tbody>
</Table>

Here are the possible error messages, which return if any condition gets failed or required data is missing for processing.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Error Code
      </th>

      <th>
        Error Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        400
      </td>

      <td>
        The request could not be understood by the server due to malformed syntax.
      </td>
    </tr>

    <tr>
      <td>
        401
      </td>

      <td>
        You are not authorized to view the resource.
      </td>
    </tr>

    <tr>
      <td>
        403
      </td>

      <td>
        Accessing the resource you were trying to reach is forbidden.
      </td>
    </tr>

    <tr>
      <td>
        404
      </td>

      <td>
        The resource you were trying to reach is not found.
      </td>
    </tr>

    <tr>
      <td>
        4030201
      </td>

      <td>
        Not Event Host
      </td>
    </tr>

    <tr>
      <td>
        4044003
      </td>

      <td>
        Mux live stream can not create upload url.
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "accelevents",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.accelevents.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/rest/host/event/{eventUrl}/rtmp/upload/session/{sessionId}": {
      "post": {
        "summary": "Create assets for direct upload provider/exhibitor streaming/lobby streaming",
        "description": "Create direct upload ID & direct upload URL for session / exhibitor / lobby. For direct upload session/exhibitor/lobby, first, you need to create direct upload assets on MUX. To do this you need to call this API which will prepare direct upload assets on MUX and will return `directUploadId` and `directUploadUrl` in response.\n\n`directUploadId` is a unique reference to uploaded video, and it can be used to get further details about created assets to check this API (https://developer.accelevents.com/reference/update-upload-id-and-file-name). \n\n`directUploadUrl` is an endpoint where the uploaded video will be stored and used by MUX. Once assets are prepared using this API in the next step, you need to upload a video (https://docs.mux.com/guides/video/upload-files-directly) to directUploadUrl for streaming.\n\nTo call this API you need to send `sessionId` as path parameters.\n\nFor creating direct upload assets for exhibitor/lobby users, need to pass 0 as `sessionId` in the path parameter in this API.\n\nThis API can be used by authenticated users only, and it will require super admin/admin/staff level access.",
        "operationId": "create-upload-video-url-for-session",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "description": "The sessionId represents the unique ID of each session. It will be generated automatically when a new session is created.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            },
            "required": true
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "API Authorization Token",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eventUrl",
            "in": "path",
            "description": "Event url is unique identifier for your event. E.g https://www.accelevents.com/events/demo. Here demo is the event url.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"directUploadId\": \"UAFPhRY54dyTh01uLb1p00LEGusQkb8CCiyJn016nGyP024\",\n  \"directUploadUrl\": \"https://storage.googleapis.com/video-storage-us-east1-uploads/UAFPhRY54dyTh01uLb1p00LEGusQkb8CCiyJn016nGyP024?Expires=1640265370&GoogleAccessId=direct-uploads-writer-prod%40mux-cloud.iam.gserviceaccount.com&Signature=MifxtlqC%2B1htHtN2G3Qq95jUd%2F6b0p1nTWdwfagOPiBFtE8Fr%2BIB299i9RkJO6uyFNvhaSLp4Nmxx8i7V0t5S0H2c6hU1op%2Ff3OMLUt5ZSNke1eOFWfs6dcUY4c4vTc572ku6q6i5%2Bq6UXBV9IEY7RikdaURO1y1SEUgH7lLen8waGagIpO%2B0TEi7FxQXzdEuqK6A4M3VnK4tQXFxzzPS%2BVvH2YrjMc2JuIAxTpHXVcKe5R3jNMNHfOU5%2Bg%2ByfqboQezQk2gPfEe3hmP3G2f%2BFeh6xnAdotEpthIQAv5Nqn7BgIxTYMniR4l7WJRuzNzWQn2eHsy5AHyeoBpl9LdLQ%3D%3D&upload_id=ADPycdsufbDHI6PPETq0O5x7O6D7a413VEcSKqZLf8AXI9cJONPJrCW7hmHr23T9YqCo-9DOvIPDAwn-Rr5zsVfF-ZNczZo7Gg\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "directUploadId": {
                      "type": "string",
                      "example": "UAFPhRY54dyTh01uLb1p00LEGusQkb8CCiyJn016nGyP024"
                    },
                    "directUploadUrl": {
                      "type": "string",
                      "example": "https://storage.googleapis.com/video-storage-us-east1-uploads/UAFPhRY54dyTh01uLb1p00LEGusQkb8CCiyJn016nGyP024?Expires=1640265370&GoogleAccessId=direct-uploads-writer-prod%40mux-cloud.iam.gserviceaccount.com&Signature=MifxtlqC%2B1htHtN2G3Qq95jUd%2F6b0p1nTWdwfagOPiBFtE8Fr%2BIB299i9RkJO6uyFNvhaSLp4Nmxx8i7V0t5S0H2c6hU1op%2Ff3OMLUt5ZSNke1eOFWfs6dcUY4c4vTc572ku6q6i5%2Bq6UXBV9IEY7RikdaURO1y1SEUgH7lLen8waGagIpO%2B0TEi7FxQXzdEuqK6A4M3VnK4tQXFxzzPS%2BVvH2YrjMc2JuIAxTpHXVcKe5R3jNMNHfOU5%2Bg%2ByfqboQezQk2gPfEe3hmP3G2f%2BFeh6xnAdotEpthIQAv5Nqn7BgIxTYMniR4l7WJRuzNzWQn2eHsy5AHyeoBpl9LdLQ%3D%3D&upload_id=ADPycdsufbDHI6PPETq0O5x7O6D7a413VEcSKqZLf8AXI9cJONPJrCW7hmHr23T9YqCo-9DOvIPDAwn-Rr5zsVfF-ZNczZo7Gg"
                    }
                  }
                }
              }
            }
          },
          "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
}
```