---
updatedAt: 2026-06-03T21:42:05.000Z
agentTools:
  projectIndex: https://saleshood.readme.io/llms.txt
---

# Add an asset to a Client Site

Share an asset to Client Site by uploading the asset.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "SalesHood Integrations API",
    "description": "Welcome to the SalesHood Integrations API.  You can leverage this API to connect your SalesHood instance's data to various other systems.  The purpose of this documentation is to provide your team information on the SalesHood Integrations API endpoints so you can easily integrate your system(s) with SalesHood."
  },
  "security": [
    {
      "IntegrationsApiKey": []
    }
  ],
  "servers": [
    {
      "url": "https://app.saleshood.com/api/v1",
      "description": "Production server"
    },
    {
      "url": "https://app.preview.saleshood.com/api/v1",
      "description": "Preview server used for testing"
    }
  ],
  "tags": [
    {
      "name": "Client Sites",
      "description": "Manage your client-facing Client Sites though the Integrations API."
    }
  ],
  "paths": {
    "/client_sites/site/{siteId}/asset": {
      "post": {
        "tags": [
          "Client Sites"
        ],
        "summary": "Add an asset to a Client Site",
        "description": "Share an asset to Client Site by uploading the asset.",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "The ID of the site to which the asset will be added",
            "schema": {
              "type": "string"
            },
            "example": "1234",
            "required": true
          }
        ],
        "requestBody": {
          "required": true,
          "description": "The request body should contain info about the user and asset.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user": {
                    "type": "object",
                    "description": "The user that is adding the content to the site. Either the user's ID or the email must be specified.",
                    "properties": {
                      "userId": {
                        "type": "string",
                        "description": "The ID of the user.",
                        "example": "1234"
                      },
                      "email": {
                        "type": "string",
                        "description": "The email of the user.",
                        "example": "user1234@email.com"
                      }
                    }
                  },
                  "asset": {
                    "type": "object",
                    "description": "The asset that is being added to the site.",
                    "properties": {
                      "linkOrFile": {
                        "type": "string",
                        "description": "Identify the asset as a link or file.",
                        "enum": [
                          "link",
                          "file"
                        ],
                        "example": "file"
                      },
                      "url": {
                        "type": "string",
                        "description": "For links, this is the link itself.  For files, this should be a download url for the file.",
                        "format": "uri",
                        "example": "https://www.zoom.com/download_video/12345678"
                      }
                    },
                    "required": [
                      "linkOrFile",
                      "url"
                    ]
                  },
                  "title": {
                    "type": "string",
                    "description": "The title of the asset that is created on the site.",
                    "example": "Meeting with client - 10/10/22"
                  },
                  "description": {
                    "type": "string",
                    "description": "The description of the asset that will be displayed to the client.",
                    "example": "This file is a video of a call recording."
                  },
                  "type": {
                    "type": "string",
                    "description": "The type of content that is uploaded.  If no type is specified, then this defaults to \"General Content\".",
                    "enum": [
                      "General Content",
                      "Call Recording",
                      "Pitch Deck",
                      "Demo Video"
                    ],
                    "example": "Call Recording"
                  },
                  "thumbnailUrl": {
                    "type": "string",
                    "description": "The url of the downloadable image that will be used as theasset's thumbnail.",
                    "example": "https://www.sample.com"
                  },
                  "contentGroup": {
                    "type": "string",
                    "description": "The name of the Content Group that the asset will be added to when it is being added to the site.  If the name entered does not exist on the site, then the content group will be created. If this field is left empty, the asset will be added to the left-most Content Group on the site. Case sensitive.",
                    "example": "Shared Videos"
                  },
                  "allowDownloads": {
                    "type": "boolean",
                    "description": "When true, the contacts of the site will be able to download the asset. This field is only related to file assets and is ignored when a link asset is added. If no value is provided, this defaults to the company default setting.",
                    "enum": [
                      true,
                      false
                    ],
                    "example": "true"
                  },
                  "identifyRequired": {
                    "type": "boolean",
                    "description": "When true, client contacts that access the site must identify themselves through OAuth or an email with a magic link. If no value is provided, this defaults to false.",
                    "enum": [
                      true,
                      false
                    ],
                    "example": "false"
                  },
                  "source": {
                    "type": "string",
                    "description": "The source system of this content",
                    "enum": [
                      "Zoom"
                    ],
                    "example": "Zoom"
                  },
                  "videoTranscript": {
                    "$ref": "#/components/schemas/Transcript"
                  }
                },
                "required": [
                  "asset",
                  "title",
                  "user"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Asset added to site successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "assetId": {
                      "type": "number",
                      "description": "The ID of the asset on the Client Site",
                      "example": 12345
                    },
                    "sellerFacingLink": {
                      "type": "string",
                      "description": "The direct link to the asset on the site that a SalesHood user can click to access the site within SalesHood.",
                      "example": "https://test.saleshood.com/client-sites/5179?content_id=72850"
                    },
                    "clientFacingLink": {
                      "type": "string",
                      "description": "The shareable direct link to the asset on the site that can be shared with a client.",
                      "example": "https://test.saleshood.com/my/public/sites/5179lEJ7nzGgDQdN_3K_0w3H-w1674501639/proxy?content_id=72850"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/response_401"
          },
          "403": {
            "description": "Access Denied",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "The user specified is not authorized to add content to this site."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "The asset is either missing or could not be added to the site."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "An internal server error occurred. Please try again later."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Transcript": {
        "type": "object",
        "description": "The transcript of a video or audio file. Only one of the two properties should be provided. if both are provided, the downloadUrl will be used.",
        "properties": {
          "downloadUrl": {
            "type": "string",
            "description": "A URL that contains a downloadable video or audio transcript in VTT or SRT file format.",
            "format": "uri",
            "example": "https://www.zoom.com/download_transcript/12345678"
          },
          "transcriptSegments": {
            "type": "array",
            "description": "An array of transcript segments. Each segment represents a single spoken line in the video or audio file.",
            "items": {
              "type": "object",
              "description": "A transcript segment.",
              "properties": {
                "text": {
                  "type": "string",
                  "description": "The text of the transcript segmnent."
                },
                "startTime": {
                  "type": "number",
                  "description": "The start time of the transcript segment in seconds from the start of the video or audio file. The start of the call should be considered as 0 seconds. Accepts 3 decimal places.",
                  "example": 0
                },
                "endTime": {
                  "type": "number",
                  "description": "The end time of the transcript segment in seconds from the start of the video or audio file. The start of the call should be considered as 0 seconds. Accepts 3 decimal places. If not provided, the end time will automatically be set to the start time of the next segment."
                }
              },
              "required": [
                "text",
                "startTime"
              ]
            }
          }
        }
      }
    },
    "securitySchemes": {
      "IntegrationsApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "The Integrations API Key can be used to authorize all endpoints in the Integrations API.  It can be generated from the Company Settings > Integrations page by a SalesHood Company Admin."
      }
    },
    "responses": {
      "response_401": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Authorization failed. Access denied."
                }
              }
            }
          }
        }
      }
    }
  }
}
```