{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Well Starter Kit","colors":{"primary":"#3B82F6","light":"#3B82F6","dark":"#3B82F6"},"logo":{"light":"https://mintcdn.com/well/j74jFqWG-NeLKp8o/logo/light.svg?fit=max\u0026auto=format\u0026n=j74jFqWG-NeLKp8o\u0026q=85\u0026s=ec61453b9226be3e275aa07423c1e891","dark":"https://mintcdn.com/well/j74jFqWG-NeLKp8o/logo/dark.svg?fit=max\u0026auto=format\u0026n=j74jFqWG-NeLKp8o\u0026q=85\u0026s=8b28f381de23d37773a8d1859b2dfaf9"},"favicon":"https://mintcdn.com/well/j74jFqWG-NeLKp8o/favicon.svg?fit=max\u0026auto=format\u0026n=j74jFqWG-NeLKp8o\u0026q=85\u0026s=22aaf8a14c21de66873177773d1e4612","navbar":{"primary":{"type":"button","label":"Subscribe","href":"https://wellapp.ai/"}},"footer":{"socials":{"x":"https://x.com/getwellapp","github":"https://github.com/WellApp-ai/Well","linkedin":"https://www.linkedin.com/company/wellappai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"well","hasAudioNarration":false,"actualSubdomain":"well","customDomains":["docs.wellapp.ai"],"gitSource":{"type":"github","owner":"wellapp-ai","repo":"platform","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false},"entitlements":{},"buildId":"6ae927729008d051b6e82dea:success","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"API Reference","count":115},{"language":"default","tag":"Data Model","count":87},{"language":"default","tag":"Enums","count":50},{"language":"default","tag":"Records — read endpoints","count":44},{"language":"default","tag":"Atomic Resources","count":27},{"language":"default","tag":"Infrastructure objects","count":27},{"language":"default","tag":"Main Resources","count":26},{"language":"default","tag":"Supporting objects","count":26},{"language":"default","tag":"System","count":18},{"language":"default","tag":"Platform objects","count":14}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/media/create","slug":"/api-reference/endpoint/media/create","pageMetadata":{"title":"Create Media","openapi":"POST /v1/medias","description":"Create a new media record with relationships to people, companies, or workspaces","href":"/api-reference/endpoint/media/create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a new media record with relationships to people, companies, or workspaces\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Media","openapi":"POST /v1/medias","description":"Create a new media record with relationships to people, companies, or workspaces","href":"/api-reference/endpoint/media/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create media","description":"Create a new media record with relationships to people, companies, or workspaces","parameters":["d74ca946-da8a-4b34-a92f-cbec7762754e"],"requestBody":"7088e551-063d-4e75-aec1-d84933fe9b6d","responses":{"201":"b0c0b7e8-ab6d-43b4-a0b4-65f4296d91d2","400":"c938b00a-a6d6-4a92-88d1-a0299825472d","401":"ab526584-09ec-490c-9539-f0aa65a32f68"},"method":"post","type":"path","servers":["4cb86cf8-c8c0-4af5-bb4b-4aa6ecdcbcfb"],"security":[],"path":"/v1/medias","baseUrlOptions":["https://api.wellapp.ai"],"title":"Create media","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"d74ca946-da8a-4b34-a92f-cbec7762754e":{"name":"Authorization","in":"header","required":true,"schema":{"type":"string","isRequired":true,"description":"Bearer token for authentication","uniqueKey":"","typeLabel":"string"},"description":"Bearer token for authentication"}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"Image in png, jpg or svg format","isRequired":true,"uniqueKey":"file","typeLabel":"file"},"data.type":{"type":"string","const":"media","description":"Resource type identifier","isRequired":true,"uniqueKey":"data\\.type","typeLabel":"string"},"data.attributes.media_type":{"type":"string","enum":["avatar","logo","banner"],"description":"Type of media (avatar, logo, banner)","uniqueKey":"data\\.attributes\\.media_type","typeLabel":"enum\u003cstring>"},"data.attributes.is_primary":{"type":"boolean","default":true,"description":"Marks preferred media. Default: true","uniqueKey":"data\\.attributes\\.is_primary","typeLabel":"boolean"},"data.relationships.people.data[].type":{"type":"string","const":"people","description":"Type for people relationship","uniqueKey":"data\\.relationships\\.people\\.data[]\\.type","typeLabel":"string"},"data.relationships.people.data[].id":{"type":"string","format":"uuid","description":"UUID of the person to associate with this media","uniqueKey":"data\\.relationships\\.people\\.data[]\\.id","typeLabel":"string\u003cuuid>"},"data.relationships.companies.data[].type":{"type":"string","const":"company","description":"Type for company relationship","uniqueKey":"data\\.relationships\\.companies\\.data[]\\.type","typeLabel":"string"},"data.relationships.companies.data[].id":{"type":"string","format":"uuid","description":"UUID of the company to associate with this media","uniqueKey":"data\\.relationships\\.companies\\.data[]\\.id","typeLabel":"string\u003cuuid>"},"data.relationships.workspaces.data[].type":{"type":"string","const":"workspace","description":"Type for workspace relationship","uniqueKey":"data\\.relationships\\.workspaces\\.data[]\\.type","typeLabel":"string"},"data.relationships.workspaces.data[].id":{"type":"string","format":"uuid","description":"UUID of the workspace to associate with this media","uniqueKey":"data\\.relationships\\.workspaces\\.data[]\\.id","typeLabel":"string\u003cuuid>"},"data.relationships.workspaces.data[].external_workspace_id":{"type":"string","format":"uuid","description":"UUID of the external workspace to associate with this media","uniqueKey":"data\\.relationships\\.workspaces\\.data[]\\.external_workspace_id","typeLabel":"string\u003cuuid>"}},"required":["file","data.type"],"uniqueKey":"","typeLabel":"object"},"example":{"file":"@/path/to/image.jpg","data":"{\"type\":\"media\",\"attributes\":{\"media_type\":\"avatar\",\"is_primary\":true},\"relationships\":{\"people\":{\"data\":[{\"type\":\"people\",\"id\":\"550e8400-e29b-41d4-a716-446655440000\"}]}}}"},"examples":{"Example":{"title":"Example","value":{"file":"@/path/to/image.jpg","data":"{\"type\":\"media\",\"attributes\":{\"media_type\":\"avatar\",\"is_primary\":true},\"relationships\":{\"people\":{\"data\":[{\"type\":\"people\",\"id\":\"550e8400-e29b-41d4-a716-446655440000\"}]}}}"}}},"exampleType":"examples"},"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","const":["medias"],"examples":["medias"],"uniqueKey":"type","typeLabel":"string"},"attributes":{"type":"object","properties":{"media_type":{"type":"string","enum":["avatar","logo","banner"],"description":"Type of media (avatar, logo, banner) See [Media type documentation](/enums/media) for complete list.","isRequired":true,"uniqueKey":"attributes.media_type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","format":"uri","description":"Direct media URL","examples":["https://cdn.example.com/avatar.jpg"],"isRequired":true,"uniqueKey":"attributes.url","typeLabel":"string\u003curi>"},"is_primary":{"type":"boolean","default":true,"description":"Marks preferred media. Default: true","uniqueKey":"attributes.is_primary","typeLabel":"boolean"}},"required":["media_type","url"],"uniqueKey":"attributes","typeLabel":"object"},"relationship":{"type":"object","properties":{"persons":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["people"],"isRequired":true,"uniqueKey":"relationship.persons.data.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"UUID of an existing people or temp-id that references an people defined in the included array","isRequired":true,"uniqueKey":"relationship.persons.data.items.[INDEX].id","typeLabel":"string"}},"required":["type","id"],"uniqueKey":"relationship.persons.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"relationship.persons.data","typeLabel":"object[]"}},"uniqueKey":"relationship.persons","typeLabel":"object"},"companies":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["company"],"isRequired":true,"uniqueKey":"relationship.companies.data.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"UUID of an existing companies or temp-id that references an companies defined in the included array","isRequired":true,"uniqueKey":"relationship.companies.data.items.[INDEX].id","typeLabel":"string"}},"required":["type","id"],"uniqueKey":"relationship.companies.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"relationship.companies.data","typeLabel":"object[]"}},"uniqueKey":"relationship.companies","typeLabel":"object"},"workspaces":{"type":"object","properties":{"data":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","external_workspace_id"],"properties":{"type":{"type":"string","enum":["workspace"],"isRequired":true,"uniqueKey":"relationship.workspaces.data.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"external_workspace_id":{"type":"string","description":"External workspace identifier","isRequired":true,"uniqueKey":"relationship.workspaces.data.items.[INDEX].oneOf.0.external_workspace_id","typeLabel":"string"}},"uniqueKey":"relationship.workspaces.data.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","id"],"properties":{"type":{"type":"string","enum":["workspace"],"isRequired":true,"uniqueKey":"relationship.workspaces.data.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","format":"uuid","description":"UUID of an existing workspace or temp-id that references an workspace defined in the included array","isRequired":true,"uniqueKey":"relationship.workspaces.data.items.[INDEX].oneOf.1.id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"relationship.workspaces.data.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"relationship.workspaces.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"relationship.workspaces.data","typeLabel":"object[]"}},"uniqueKey":"relationship.workspaces","typeLabel":"object"},"invoice_items":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"invoice_item","uniqueKey":"relationship.invoice_items.data.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","example":"pm_1","description":"UUID of an existing invoice item or temp-id that references an invoice item defined in the included array","uniqueKey":"relationship.invoice_items.data.items.[INDEX].id","typeLabel":"string"}},"uniqueKey":"relationship.invoice_items.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"relationship.invoice_items.data","typeLabel":"object[]"}},"description":"Line items included in the invoice","uniqueKey":"relationship.invoice_items","typeLabel":"object"}},"uniqueKey":"relationship","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"medias","relationship":{"persons":{"data":[{"type":"people","id":"\u003cstring>"}]},"companies":{"data":[{"type":"company","id":"\u003cstring>"}]},"workspaces":{"data":[{"type":"workspace","external_workspace_id":"\u003cstring>"}]},"invoice_items":{"data":[{"type":"invoice_item","id":"pm_1"}]}}}}},"exampleType":"generated"}},"exampleType":"examples"},"responses":{"b0c0b7e8-ab6d-43b4-a0b4-65f4296d91d2":{"description":"Media created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"media","uniqueKey":"data.type","typeLabel":"string"},"id":{"type":"string","format":"uuid","uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"attributes":{"type":"object","properties":{"media_type":{"type":"string","enum":["avatar","logo","banner"],"uniqueKey":"data.attributes.media_type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","format":"uri","description":"URL to the media file","uniqueKey":"data.attributes.url","typeLabel":"string\u003curi>"},"is_primary":{"type":"boolean","description":"Whether this is the primary media","uniqueKey":"data.attributes.is_primary","typeLabel":"boolean"},"processed_at":{"type":"string","format":"date-time","description":"Timestamp when media processing completed","uniqueKey":"data.attributes.processed_at","typeLabel":"string\u003cdate-time>"},"uploaded_at":{"type":"string","format":"date-time","uniqueKey":"data.attributes.uploaded_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.attributes","typeLabel":"object"},"relationships":{"type":"object","properties":{"people":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"people","uniqueKey":"data.relationships.people.data.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","format":"uuid","uniqueKey":"data.relationships.people.data.items.[INDEX].id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.relationships.people.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.relationships.people.data","typeLabel":"object[]"}},"uniqueKey":"data.relationships.people","typeLabel":"object"},"companies":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"company","uniqueKey":"data.relationships.companies.data.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","format":"uuid","uniqueKey":"data.relationships.companies.data.items.[INDEX].id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.relationships.companies.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.relationships.companies.data","typeLabel":"object[]"}},"uniqueKey":"data.relationships.companies","typeLabel":"object"},"workspaces":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"workspace","uniqueKey":"data.relationships.workspaces.data.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","format":"uuid","uniqueKey":"data.relationships.workspaces.data.items.[INDEX].id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"data.relationships.workspaces.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.relationships.workspaces.data","typeLabel":"object[]"}},"uniqueKey":"data.relationships.workspaces","typeLabel":"object"}},"uniqueKey":"data.relationships","typeLabel":"object"},"included":{"type":"object","properties":{"people":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"people","uniqueKey":"data.included.people.data.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","format":"uuid","uniqueKey":"data.included.people.data.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"attributes":{"type":"object","properties":{"first_name":{"type":"string","description":"The person's first name","uniqueKey":"data.included.people.data.items.[INDEX].attributes.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"The person's last name","uniqueKey":"data.included.people.data.items.[INDEX].attributes.last_name","typeLabel":"string"},"full_name":{"type":"string","description":"The person's full name (typically first_name + last_name)","uniqueKey":"data.included.people.data.items.[INDEX].attributes.full_name","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","description":"Timestamp when the person was created","uniqueKey":"data.included.people.data.items.[INDEX].attributes.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"Timestamp when the person was last updated","uniqueKey":"data.included.people.data.items.[INDEX].attributes.updated_at","typeLabel":"string\u003cdate-time>"}},"additionalProperties":false,"uniqueKey":"data.included.people.data.items.[INDEX].attributes","typeLabel":"object"}},"uniqueKey":"data.included.people.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.included.people.data","typeLabel":"object[]"}},"uniqueKey":"data.included.people","typeLabel":"object"},"companies":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"company","uniqueKey":"data.included.companies.data.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","format":"uuid","uniqueKey":"data.included.companies.data.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"attributes":{"type":"object","properties":{"description":{"type":"string","uniqueKey":"data.included.companies.data.items.[INDEX].attributes.description","typeLabel":"string"},"domain_name_primary_link_url":{"type":"string","format":"url","maxLength":500,"description":"The domain url from the website or email address of the company. Used as unique identifier in some cases.","examples":["acme.com"],"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.domain_name_primary_link_url","typeLabel":"string\u003curl>"},"tax_id":{"type":"object","properties":{"value":{"description":"Tax ID issued by local or national tax authority.","type":"string","examples":["DE123456789"],"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.tax_id.value","typeLabel":"string"},"type":{"description":"Type of tax ID, useful for applying formatting and validation rules.","type":"string","examples":["VAT"],"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.tax_id.type","typeLabel":"string"}},"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.tax_id","typeLabel":"object"},"registration":{"type":"object","properties":{"trade_name":{"description":"Commercial or branding name (if different from registered name).","type":"string","examples":["TechSol"],"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.registration.trade_name","typeLabel":"string"},"registered_name":{"description":"Legal company name.","type":"string","minLength":1,"maxLength":100,"examples":["Red Hat Inc."],"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.registration.registered_name","typeLabel":"string"}},"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.registration","typeLabel":"object"},"registration_number":{"type":"object","properties":{"business_type":{"description":"Legal entity structure type.","type":"string","examples":["GmbH"],"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.registration_number.business_type","typeLabel":"string"},"value":{"description":"Official company registration number.","type":"string","examples":["HRB 123456"],"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.registration_number.value","typeLabel":"string"},"registry_name":{"description":"Name of the official registration body.","type":"string","examples":["Handelsregister Berlin"],"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.registration_number.registry_name","typeLabel":"string"},"registry_country":{"description":"Country of the registry authority. (string (ISO 3166-1 alpha-2))","type":"string","examples":["DE"],"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.registration_number.registry_country","typeLabel":"string"}},"uniqueKey":"data.included.companies.data.items.[INDEX].attributes.registration_number","typeLabel":"object"},"workspace_id":{"type":"string","format":"uuid","description":"UUID of the workspace associated with this company","uniqueKey":"data.included.companies.data.items.[INDEX].attributes.workspace_id","typeLabel":"string\u003cuuid>"},"created_at":{"type":"string","format":"date-time","uniqueKey":"data.included.companies.data.items.[INDEX].attributes.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"data.included.companies.data.items.[INDEX].attributes.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.included.companies.data.items.[INDEX].attributes","typeLabel":"object"}},"uniqueKey":"data.included.companies.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.included.companies.data","typeLabel":"object[]"}},"uniqueKey":"data.included.companies","typeLabel":"object"},"workspaces":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"workspace","uniqueKey":"data.included.workspaces.data.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","format":"uuid","uniqueKey":"data.included.workspaces.data.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"attributes":{"type":"object","properties":{"name":{"type":"string","description":"Workspace name","uniqueKey":"data.included.workspaces.data.items.[INDEX].attributes.name","typeLabel":"string"},"desription":{"type":"string","description":"Workspace description","uniqueKey":"data.included.workspaces.data.items.[INDEX].attributes.desription","typeLabel":"string"},"external_workspace_id":{"type":"string","format":"uuid","description":"external workspace id","uniqueKey":"data.included.workspaces.data.items.[INDEX].attributes.external_workspace_id","typeLabel":"string\u003cuuid>"},"avatar_color":{"type":"string","format":"colors","description":"Color of the avatar","uniqueKey":"data.included.workspaces.data.items.[INDEX].attributes.avatar_color","typeLabel":"string\u003ccolors>"},"created_at":{"type":"string","format":"date-time","description":"Timestamp when the workspace was created","uniqueKey":"data.included.workspaces.data.items.[INDEX].attributes.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"Timestamp when the workspace was last updated","uniqueKey":"data.included.workspaces.data.items.[INDEX].attributes.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.included.workspaces.data.items.[INDEX].attributes","typeLabel":"object"}},"uniqueKey":"data.included.workspaces.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.included.workspaces.data","typeLabel":"object[]"}},"uniqueKey":"data.included.workspaces","typeLabel":"object"},"invoice_item":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"invoice_item","uniqueKey":"data.included.invoice_item.data.items.[INDEX].type","typeLabel":"string"},"id":{"type":"string","format":"uuid","uniqueKey":"data.included.invoice_item.data.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"attributes":{"type":"object","properties":{"line_id":{"type":"string","description":"Line identifier within the invoice","example":"1","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.line_id","typeLabel":"string"},"sku":{"type":"string","description":"Stock Keeping Unit identifier","example":"WM-1001","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.sku","typeLabel":"string"},"name":{"type":"string","description":"Product or service name","example":"Wireless Mouse","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.name","typeLabel":"string"},"description":{"type":"string","description":"Detailed description of the item","example":"Ergonomic wireless mouse with USB receiver","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.description","typeLabel":"string"},"unit_price":{"type":"number","format":"decimal","minimum":0,"description":"Unit price in local currency","example":25,"uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.unit_price","typeLabel":"number\u003cdecimal>"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 4217 currency code","example":"EUR","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.currency","typeLabel":"string"},"unit":{"type":"string","description":"Unit of measurement","example":"EA","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.unit","typeLabel":"string"},"min_quantity":{"type":"integer","minimum":0,"description":"Minimum quantity allowed","example":1,"uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.min_quantity","typeLabel":"integer"},"max_quantity":{"type":"integer","minimum":1,"description":"Maximum quantity allowed","example":500,"uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.max_quantity","typeLabel":"integer"},"tax":{"type":"object","properties":{"rate":{"type":"number","format":"decimal","minimum":0,"maximum":100,"description":"Tax rate as percentage","example":20,"uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.tax.rate","typeLabel":"number\u003cdecimal>"},"category":{"type":"string","description":"Tax category","example":"standard","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.tax.category","typeLabel":"string"},"scheme":{"type":"string","description":"Tax scheme identifier","example":"VAT","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.tax.scheme","typeLabel":"string"}},"uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.tax","typeLabel":"object"},"period":{"type":"object","properties":{"start":{"type":"string","format":"date","description":"Service period start date","example":"2025-06-26","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.period.start","typeLabel":"string\u003cdate>"},"end":{"type":"string","format":"date","description":"Service period end date","example":"2025-06-27","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.period.end","typeLabel":"string\u003cdate>"}},"uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.period","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2025-05-11T13:42:12Z","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2025-05-11T13:45:20Z","uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.included.invoice_item.data.items.[INDEX].attributes","typeLabel":"object"}},"uniqueKey":"data.included.invoice_item.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.included.invoice_item.data","typeLabel":"object[]"}},"uniqueKey":"data.included.invoice_item","typeLabel":"object"}},"uniqueKey":"data.included","typeLabel":"object"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":[{"type":"media","id":"media1","attributes":{"media_type":"avatar","url":"https://cdn.example.com/avatar.jpg","is_primary":true,"uploaded_at":"2025-06-01T10:00:00Z","processed_at":"2025-06-01T10:00:00Z"},"relationships":{"people":{"data":[{"type":"people","id":"b6c22e98-c8d0-485e-9d3d-caa2bbaff77c"}]},"companies":{"data":[{"type":"company","id":"b6c22e98-c8d0-485e-9d3d-caa2bbaff77a"}]},"workspaces":{"data":[{"type":"workspace","id":"b6c22e98-c8d0-485e-9d3d-caa2bbaff77b"}]}},"included":[{"type":"people","id":"people1","attributes":{"first_name":"John","last_name":"Doe","job_title":"Software Engineer","created_at":"2025-05-01T09:00:00Z","updated_at":"2025-06-01T10:00:00Z"}},{"type":"company","id":"b6c22e98-c8d0-485e-9d3d-caa2bbaff77a","attributes":{"name":"Tech Startup Inc","description":"An innovative technology company focused on AI and ML solutions","registration_tax_id":"12345678901","registration_registered_value":"123456789","created_at":"2025-08-03T10:38:40.967Z","updated_at":"2025-08-04T07:51:01.785Z"}},{"type":"workspace","id":"workspace_tenant","attributes":{"name":"Marketing Team Workspace","description":"Collaborative workspace for the marketing team to manage campaigns and content","external_workspace_id":"fygr_123","created_at":"2024-01-05T08:00:00Z","updated_at":"2024-01-18T12:15:00Z"}}]}]},"examples":{"Example":{"title":"Example","value":{"data":[{"type":"media","id":"media1","attributes":{"media_type":"avatar","url":"https://cdn.example.com/avatar.jpg","is_primary":true,"uploaded_at":"2025-06-01T10:00:00Z","processed_at":"2025-06-01T10:00:00Z"},"relationships":{"people":{"data":[{"type":"people","id":"b6c22e98-c8d0-485e-9d3d-caa2bbaff77c"}]},"companies":{"data":[{"type":"company","id":"b6c22e98-c8d0-485e-9d3d-caa2bbaff77a"}]},"workspaces":{"data":[{"type":"workspace","id":"b6c22e98-c8d0-485e-9d3d-caa2bbaff77b"}]}},"included":[{"type":"people","id":"people1","attributes":{"first_name":"John","last_name":"Doe","job_title":"Software Engineer","created_at":"2025-05-01T09:00:00Z","updated_at":"2025-06-01T10:00:00Z"}},{"type":"company","id":"b6c22e98-c8d0-485e-9d3d-caa2bbaff77a","attributes":{"name":"Tech Startup Inc","description":"An innovative technology company focused on AI and ML solutions","registration_tax_id":"12345678901","registration_registered_value":"123456789","created_at":"2025-08-03T10:38:40.967Z","updated_at":"2025-08-04T07:51:01.785Z"}},{"type":"workspace","id":"workspace_tenant","attributes":{"name":"Marketing Team Workspace","description":"Collaborative workspace for the marketing team to manage campaigns and content","external_workspace_id":"fygr_123","created_at":"2024-01-05T08:00:00Z","updated_at":"2024-01-18T12:15:00Z"}}]}]}}},"exampleType":"examples"}},"exampleType":"examples"},"c938b00a-a6d6-4a92-88d1-a0299825472d":{"description":"Bad request - validation error","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","example":"SCHEMA_VALIDATION_ERROR","description":"Error code identifier","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"status":{"type":"integer","example":400,"description":"HTTP status code","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"title":{"type":"string","example":"Validation Error","description":"Error title","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"message":{"type":"string","example":"The request is invalid","description":"Detailed error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"meta":{"type":"object","properties":{"log_id":{"type":"string","format":"uuid","example":"65c669d4-679c-4a8b-b8c0-fbe37699bb5b","description":"Unique identifier for tracking this error in logs","isRequired":true,"uniqueKey":"meta.log_id","typeLabel":"string\u003cuuid>"}},"required":["log_id"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"details":{"type":"array","items":{"type":"object","properties":{"instancePath":{"type":"string","description":"Path to the invalid field in the request","uniqueKey":"details.items.[INDEX].instancePath","typeLabel":"string"},"schemaPath":{"type":"string","description":"Path to the validation rule in the schema","uniqueKey":"details.items.[INDEX].schemaPath","typeLabel":"string"},"keyword":{"type":"string","description":"Validation keyword that failed","uniqueKey":"details.items.[INDEX].keyword","typeLabel":"string"},"params":{"type":"object","description":"Parameters related to the validation failure","uniqueKey":"details.items.[INDEX].params","typeLabel":"object"},"message":{"type":"string","description":"Human-readable validation error message","uniqueKey":"details.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"details.items.[INDEX]","typeLabel":"object"},"description":"Array of detailed validation errors","uniqueKey":"details","typeLabel":"object[]"}},"required":["code","status","title","message","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"SCHEMA_VALIDATION_ERROR","status":400,"title":"Validation Error","message":"The request is invalid","meta":{"log_id":"65c669d4-679c-4a8b-b8c0-fbe37699bb5b"},"details":[{"instancePath":"\u003cstring>","schemaPath":"\u003cstring>","keyword":"\u003cstring>","params":{},"message":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"ab526584-09ec-490c-9539-f0aa65a32f68":{"description":"Unauthorized - invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","example":"UNAUTHORIZED","description":"Error code identifier","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"status":{"type":"integer","example":401,"description":"HTTP status code","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"title":{"type":"string","example":"Unauthorized","description":"Error title","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"message":{"type":"string","example":"You are not authorized to access this resource","description":"Detailed error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"meta":{"type":"object","properties":{"log_id":{"type":"string","format":"uuid","example":"65c669d4-679c-4a8b-b8c0-fbe37699bb5b","description":"Unique identifier for tracking this error in logs","isRequired":true,"uniqueKey":"meta.log_id","typeLabel":"string\u003cuuid>"}},"required":["log_id"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"}},"required":["code","status","title","message","meta"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"UNAUTHORIZED","status":401,"title":"Unauthorized","message":"You are not authorized to access this resource","meta":{"log_id":"65c669d4-679c-4a8b-b8c0-fbe37699bb5b"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"4cb86cf8-c8c0-4af5-bb4b-4aa6ecdcbcfb":{"url":"https://api.wellapp.ai"}}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"well","siteName":"Well Starter Kit","title":"Create Media - Well Starter Kit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-09-24T09:12:03.654Z","originalFileLocation":"api-reference/endpoint/media/create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new media record with relationships to people, companies, or workspaces\">\u003cmeta data-mint-head name=\"application-name\" content=\"Well Starter Kit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/well/8leEQflIFXlElmHq/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/well/8leEQflIFXlElmHq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/well/8leEQflIFXlElmHq/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/well/8leEQflIFXlElmHq/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/well/8leEQflIFXlElmHq/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/well/8leEQflIFXlElmHq/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/well/8leEQflIFXlElmHq/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/well/8leEQflIFXlElmHq/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/well/8leEQflIFXlElmHq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Media - Well Starter Kit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new media record with relationships to people, companies, or workspaces\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Well Starter Kit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.wellapp.ai/api-reference/endpoint/media/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://well.mintlify.site/_mintlify/api/og/v2?division=Media\u0026amp;title=Create+Media\u0026amp;description=Create+a+new+media+record+with+relationships+to+people%2C+companies%2C+or+workspaces\u0026amp;theme=9dadfd2350cdc89346698a32\u0026amp;signature=54b155554031725bcb3c857487ea22fc0a47e9864e76bdfbd1e0c505ff0f24fe\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Media - Well Starter Kit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new media record with relationships to people, companies, or workspaces\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://well.mintlify.site/_mintlify/api/og/v2?division=Media\u0026amp;title=Create+Media\u0026amp;description=Create+a+new+media+record+with+relationships+to+people%2C+companies%2C+or+workspaces\u0026amp;theme=9dadfd2350cdc89346698a32\u0026amp;signature=54b155554031725bcb3c857487ea22fc0a47e9864e76bdfbd1e0c505ff0f24fe\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/well/8leEQflIFXlElmHq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Well Starter Kit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.wellapp.ai/api-reference/endpoint/media/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/media/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.wellapp.ai/#organization\",\"name\":\"Well Starter Kit\",\"url\":\"https://docs.wellapp.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/well/j74jFqWG-NeLKp8o/logo/light.svg?fit=max\u0026auto=format\u0026n=j74jFqWG-NeLKp8o\u0026q=85\u0026s=ec61453b9226be3e275aa07423c1e891\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.wellapp.ai#website\",\"name\":\"Well Starter Kit\",\"url\":\"https://docs.wellapp.ai\",\"publisher\":{\"@id\":\"https://docs.wellapp.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.wellapp.ai/api-reference/endpoint/media/create#webpage\",\"url\":\"https://docs.wellapp.ai/api-reference/endpoint/media/create\",\"name\":\"Create Media\",\"description\":\"Create a new media record with relationships to people, companies, or workspaces\",\"dateModified\":\"2025-09-24T09:12:03.654Z\",\"isPartOf\":{\"@id\":\"https://docs.wellapp.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.wellapp.ai/api-reference/endpoint/media/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.wellapp.ai/api-reference/endpoint/media/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Atomic Resources\",\"item\":\"https://docs.wellapp.ai/api-reference/endpoint/emails/create-email\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Media\",\"item\":\"https://docs.wellapp.ai/api-reference/endpoint/media/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.wellapp.ai/api-reference/endpoint/media/create#apireference\",\"headline\":\"Create Media\",\"name\":\"Create Media\",\"description\":\"Create a new media record with relationships to people, companies, or workspaces\",\"url\":\"https://docs.wellapp.ai/api-reference/endpoint/media/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.wellapp.ai/api-reference/endpoint/media/create#webpage\"},\"dateModified\":\"2025-09-24T09:12:03.654Z\",\"publisher\":{\"@id\":\"https://docs.wellapp.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.wellapp.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Well Starter Kit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Well Starter Kit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/media/create.md","siteName":"Well Starter Kit","nav":{"global":null,"tabs":[{"tab":"Get started","icon":"rocket","pages":[{"title":"Get started","href":"/api-reference/get-started"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Main Resources","pages":[{"group":"Companies","pages":[{"title":"Create Company","openapi":"POST /v1/companies","href":"/api-reference/endpoint/companies/create"},{"title":"Get Company by id","openapi":"GET /v1/companies/{id}","href":"/api-reference/endpoint/companies/get"},{"title":"Get Companies","openapi":"GET /v1/companies","href":"/api-reference/endpoint/companies/getAll"},{"title":"Update Company","openapi":"PATCH /v1/companies/{id}","href":"/api-reference/endpoint/companies/update"},{"title":"Delete Company","openapi":"DELETE /v1/companies/{id}","href":"/api-reference/endpoint/companies/delete"}]},{"group":"Connectors","pages":[{"title":"Create Connectors","openapi":"POST /v1/connectors","href":"/api-reference/endpoint/connectors/create"},{"title":"Get Connectors by id","openapi":"GET /v1/connectors/{id}","href":"/api-reference/endpoint/connectors/get"},{"title":"Get Connectors","openapi":"GET /v1/connectors","href":"/api-reference/endpoint/connectors/get-all"},{"title":"Update Connectors","openapi":"PATCH /v1/connectors/{id}","href":"/api-reference/endpoint/connectors/update"},{"title":"Delete Connectors","openapi":"DELETE /v1/connectors/{id}","href":"/api-reference/endpoint/connectors/delete"}]},{"group":"Payment Means","pages":[{"title":"Create Payment Mean","openapi":"POST /v1/payment-means","href":"/api-reference/endpoint/payment-means/create"},{"title":"Update Payment Mean","openapi":"PATCH /v1/payment-means/{id}","href":"/api-reference/endpoint/payment-means/update"},{"title":"Delete Payment Mean","openapi":"DELETE /v1/payment-means/{id}","href":"/api-reference/endpoint/payment-means/delete"}]},{"group":"People","pages":[{"title":"Create Person","openapi":"POST /v1/people","href":"/api-reference/endpoint/people/create"},{"title":"List People","openapi":"GET /v1/people","href":"/api-reference/endpoint/people/get-all"},{"title":"Get Person","openapi":"GET /v1/people/{id}","href":"/api-reference/endpoint/people/get"},{"title":"Delete Person","openapi":"DELETE /v1/people/{id}","href":"/api-reference/endpoint/people/delete"},{"title":"Link Companies to Person","openapi":"POST /v1/people/{peopleId}/relationships/companies","href":"/api-reference/endpoint/people/add-companies-to-person"}]},{"group":"Invoices","pages":[{"title":"Get Invoice","openapi":"GET /v1/invoices/{id}","href":"/api-reference/endpoint/invoices/get"},{"title":"Get Invoices","openapi":"GET /v1/invoices","href":"/api-reference/endpoint/invoices/get-all"},{"title":"Create Invoices","openapi":"POST /v1/invoices","href":"/api-reference/endpoint/invoices/post"},{"title":"Patch Invoice","openapi":"PATCH /v1/invoices/{id}","href":"/api-reference/endpoint/invoices/patch"},{"title":"Delete Invoice","openapi":"DELETE /v1/invoices/{id}","href":"/api-reference/endpoint/invoices/delete"}]},{"group":"Transactions","pages":[{"title":"Create Transaction","openapi":"POST /v1/transactions","href":"/api-reference/endpoint/transactions/create"},{"title":"Update Transaction","openapi":"PATCH /v1/transactions/{id}","href":"/api-reference/endpoint/transactions/update"},{"title":"Delete Transaction","openapi":"DELETE /v1/transactions/{id}","href":"/api-reference/endpoint/transactions/delete"}]}]},{"group":"Atomic Resources","pages":[{"group":"Emails","pages":[{"title":"Create Email","openapi":"POST /v1/emails","href":"/api-reference/endpoint/emails/create-email"},{"title":"Get Emails","openapi":"GET /v1/emails","href":"/api-reference/endpoint/emails/get-emails"},{"title":"Delete Email","openapi":"DELETE /v1/emails/{id}","href":"/api-reference/endpoint/emails/delete-email"},{"title":"Get Email by ID","openapi":"GET /v1/emails/{id}","href":"/api-reference/endpoint/emails/get-email-by-id"}]},{"group":"Phones","pages":[{"title":"Create Phone","openapi":"POST /v1/phones","href":"/api-reference/endpoint/phones/create-phone"},{"title":"Delete Person Phone","openapi":"DELETE /v1/phones/{id}","href":"/api-reference/endpoint/phones/delete-phone"},{"title":"Create Phone Verification Code","openapi":"POST /v1/people/{personId}/phones/{phoneId}/verify/{code}","href":"/api-reference/endpoint/phones/create-phone-verification-code"},{"title":"Verify Phone Number","openapi":"POST /v1/people/{personId}/phones/{phoneId}/verify","href":"/api-reference/endpoint/phones/create-verify-phone-number"}]},{"group":"Documents","pages":[{"title":"Create Document","openapi":"POST /v1/documents","href":"/api-reference/endpoint/documents/create"},{"title":"Get Document by id","openapi":"GET /v1/documents/{id}","href":"/api-reference/endpoint/documents/get"},{"title":"Get Document","openapi":"GET /v1/documents","href":"/api-reference/endpoint/documents/get-all"},{"title":"Delete Document","openapi":"DELETE /v1/documents/{id}","href":"/api-reference/endpoint/documents/delete"}]},{"group":"Invoice items","pages":[{"title":"Create Invoice items","openapi":"POST /v1/invoice-items","href":"/api-reference/endpoint/invoice-items/post"},{"title":"Delete Invoice items","openapi":"DELETE /v1/invoice-items/{id}","href":"/api-reference/endpoint/invoice-items/delete"},{"title":"Patch Invoice items","openapi":"PATCH /v1/invoice-items/{id}","href":"/api-reference/endpoint/invoice-items/patch"}]},{"group":"Web Links","pages":[{"title":"Create web link","openapi":"POST /v1/web-links","href":"/api-reference/endpoint/web-link/create"},{"title":"Delete web-link","openapi":"Delete /v1/web-links/{id}","href":"/api-reference/endpoint/web-link/delete"},{"title":"Get web-Link","openapi":"Get /v1/web-links","href":"/api-reference/endpoint/web-link/get"},{"title":"Get web-Link by id","openapi":"Get /v1/web-links/{id}","description":"Fetch one `social_link` by id, workspace-scoped. Returns 404 when the id is outside the caller's workspace.","href":"/api-reference/endpoint/web-link/get-by-id"}]},{"group":"Media","pages":[{"title":"Create Media","openapi":"POST /v1/medias","href":"/api-reference/endpoint/media/create"},{"title":"Delete Media","openapi":"DELETE /v1/medias/{id}","description":"Delete an existing media record and its associated file","href":"/api-reference/endpoint/media/delete"}]},{"group":"Location","pages":[{"title":"Create Location","openapi":"POST /v1/locations","href":"/api-reference/endpoint/location/create"},{"title":"Get Location","openapi":"GET /v1/locations","href":"/api-reference/endpoint/location/get"},{"title":"Get Location by id","openapi":"GET /v1/locations/{id}","href":"/api-reference/endpoint/location/get-by-id"},{"title":"Delete Location","openapi":"DELETE /v1/locations/{id}","href":"/api-reference/endpoint/location/delete"}]},{"group":"Balances","pages":[{"title":"Create Balance","openapi":"POST /v1/balances","href":"/api-reference/endpoint/balances/create"},{"title":"Delete Balance","openapi":"DELETE /v1/balances/{id}","href":"/api-reference/endpoint/balances/delete"}]}]},{"group":"System","pages":[{"group":"API Keys","pages":[{"title":"Create Api-Key","openapi":"POST /v1/api-key","href":"/api-reference/endpoint/api-key/create"},{"title":"Delete Api-Key","openapi":"DELETE /v1/api-key/{id}","href":"/api-reference/endpoint/api-key/delete"}]},{"group":"Workspaces","pages":[{"title":"Create Workspace","openapi":"POST /v1/workspaces","href":"/api-reference/endpoint/workspaces/create"},{"title":"List Workspaces","href":"/api-reference/endpoint/workspaces/get-all"},{"title":"Get Workspace","openapi":"GET /v1/workspaces/{id}","href":"/api-reference/endpoint/workspaces/get"},{"title":"Update Workspace","openapi":"PATCH /v1/workspaces/{id}","href":"/api-reference/endpoint/workspaces/update"},{"title":"Delete Workspace","openapi":"DELETE /v1/workspaces/{id}","href":"/api-reference/endpoint/workspaces/delete"},{"title":"Remove Workspace from Company","openapi":"DELETE /v1/companies/{companyId}/relationships/workspace/{workspaceId}","href":"/api-reference/endpoint/companies/remove-workspace-from-company"}]},{"group":"Memberships","pages":[{"title":"Create Membership","openapi":"POST /v1/memberships","href":"/api-reference/endpoint/memberships/create"},{"title":"Get Membership","openapi":"GET /v1/memberships/{id}","href":"/api-reference/endpoint/memberships/get"},{"title":"Get All Memberships","openapi":"GET /v1/memberships","href":"/api-reference/endpoint/memberships/get-all"},{"title":"Update Membership","openapi":"PATCH /v1/memberships/{id}","href":"/api-reference/endpoint/memberships/update"},{"title":"Delete Membership","openapi":"DELETE /v1/memberships/{id}","href":"/api-reference/endpoint/memberships/delete"}]},{"group":"Webhooks","pages":[{"title":"Create Webhook","openapi":"POST /v1/subscriptions/webhooks","href":"/api-reference/endpoint/webhooks/create"},{"title":"Update Webhook","openapi":"PATCH /v1/subscriptions/webhooks/{id}","href":"/api-reference/endpoint/webhooks/update"},{"title":"Get Webhook","openapi":"GET /v1/subscriptions/webhooks/{id}","href":"/api-reference/endpoint/webhooks/get"},{"title":"Get Webhooks","openapi":"GET /v1/subscriptions/webhooks","href":"/api-reference/endpoint/webhooks/get-all"},{"title":"Delete Webhook","openapi":"DELETE /v1/subscriptions/webhooks/{id}","href":"/api-reference/endpoint/webhooks/delete"}]}]},{"group":"Records — read endpoints","pages":[{"group":"Transactions","pages":[{"title":"List Transactions","openapi":"GET /v1/transactions","href":"/api-reference/endpoint/transactions/get-all"},{"title":"Get Transactions","openapi":"GET /v1/transactions/{id}","href":"/api-reference/endpoint/transactions/get"}]},{"group":"Payment Means","pages":[{"title":"List Payment Means","openapi":"GET /v1/payment-means","href":"/api-reference/endpoint/payment-means/get-all"},{"title":"Get Payment Means","openapi":"GET /v1/payment-means/{id}","href":"/api-reference/endpoint/payment-means/get"}]},{"group":"Account Balances","pages":[{"title":"List Account Balances","openapi":"GET /v1/account-balances","href":"/api-reference/endpoint/account-balances/get-all"},{"title":"Get Account Balances","openapi":"GET /v1/account-balances/{id}","href":"/api-reference/endpoint/account-balances/get"}]},{"group":"Accounts","pages":[{"title":"List Accounts","openapi":"GET /v1/accounts","href":"/api-reference/endpoint/accounts/get-all"},{"title":"Get Accounts","openapi":"GET /v1/accounts/{id}","href":"/api-reference/endpoint/accounts/get"}]},{"group":"Cards","pages":[{"title":"List Cards","openapi":"GET /v1/cards","href":"/api-reference/endpoint/cards/get-all"},{"title":"Get Cards","openapi":"GET /v1/cards/{id}","href":"/api-reference/endpoint/cards/get"}]},{"group":"Checks","pages":[{"title":"List Checks","openapi":"GET /v1/checks","href":"/api-reference/endpoint/checks/get-all"},{"title":"Get Checks","openapi":"GET /v1/checks/{id}","href":"/api-reference/endpoint/checks/get"}]},{"group":"Ledger Accounts","pages":[{"title":"List Ledger Accounts","openapi":"GET /v1/ledger-accounts","href":"/api-reference/endpoint/ledger-accounts/get-all"},{"title":"Get Ledger Accounts","openapi":"GET /v1/ledger-accounts/{id}","href":"/api-reference/endpoint/ledger-accounts/get"}]},{"group":"Journals","pages":[{"title":"List Journals","openapi":"GET /v1/journals","href":"/api-reference/endpoint/journals/get-all"},{"title":"Get Journals","openapi":"GET /v1/journals/{id}","href":"/api-reference/endpoint/journals/get"}]},{"group":"Journal Entries","pages":[{"title":"List Journal Entries","openapi":"GET /v1/journal-entries","href":"/api-reference/endpoint/journal-entries/get-all"},{"title":"Get Journal Entries","openapi":"GET /v1/journal-entries/{id}","href":"/api-reference/endpoint/journal-entries/get"}]},{"group":"Tax Rates","pages":[{"title":"List Tax Rates","openapi":"GET /v1/tax-rates","href":"/api-reference/endpoint/tax-rates/get-all"},{"title":"Get Tax Rates","openapi":"GET /v1/tax-rates/{id}","href":"/api-reference/endpoint/tax-rates/get"}]},{"group":"Exchange Rates","pages":[{"title":"List Exchange Rates","openapi":"GET /v1/exchange-rates","href":"/api-reference/endpoint/exchange-rates/get-all"},{"title":"Get Exchange Rates","openapi":"GET /v1/exchange-rates/{id}","href":"/api-reference/endpoint/exchange-rates/get"}]},{"group":"Invoice Items","pages":[{"title":"List Invoice Items","openapi":"GET /v1/invoice-items","href":"/api-reference/endpoint/invoice-items/get-all"},{"title":"Get Invoice Items","openapi":"GET /v1/invoice-items/{id}","href":"/api-reference/endpoint/invoice-items/get"}]},{"group":"Categories","pages":[{"title":"List Categories","openapi":"GET /v1/categories","href":"/api-reference/endpoint/categories/get-all"},{"title":"Get Categories","openapi":"GET /v1/categories/{id}","href":"/api-reference/endpoint/categories/get"}]},{"group":"Invoice Transactions","pages":[{"title":"List Invoice Transactions","openapi":"GET /v1/invoice-transactions","href":"/api-reference/endpoint/invoice-transactions/get-all"},{"title":"Get Invoice Transactions","openapi":"GET /v1/invoice-transactions/{id}","href":"/api-reference/endpoint/invoice-transactions/get"}]},{"group":"Media","pages":[{"title":"List Media","openapi":"GET /v1/media","href":"/api-reference/endpoint/media/get-all"},{"title":"Get Media","openapi":"GET /v1/media/{id}","href":"/api-reference/endpoint/media/get"}]},{"group":"Phones","pages":[{"title":"List Phones","openapi":"GET /v1/phones","href":"/api-reference/endpoint/phones/get-all"},{"title":"Get Phones","openapi":"GET /v1/phones/{id}","href":"/api-reference/endpoint/phones/get"}]},{"group":"Web Links","pages":[{"title":"List Web Links","openapi":"GET /v1/web-links","href":"/api-reference/endpoint/web-links/get-all"},{"title":"Get Web Links","openapi":"GET /v1/web-links/{id}","href":"/api-reference/endpoint/web-links/get"}]},{"group":"Locations","pages":[{"title":"List Locations","openapi":"GET /v1/locations","href":"/api-reference/endpoint/locations/get-all"},{"title":"Get Locations","openapi":"GET /v1/locations/{id}","href":"/api-reference/endpoint/locations/get"}]},{"group":"Chat Conversations","pages":[{"title":"List Chat Conversations","openapi":"GET /v1/chat-conversations","href":"/api-reference/endpoint/chat-conversations/get-all"},{"title":"Get Chat Conversations","openapi":"GET /v1/chat-conversations/{id}","href":"/api-reference/endpoint/chat-conversations/get"}]},{"group":"Workspace Connectors","pages":[{"title":"List Workspace Connectors","openapi":"GET /v1/workspace-connectors","href":"/api-reference/endpoint/workspace-connectors/get-all"},{"title":"Get Workspace Connectors","openapi":"GET /v1/workspace-connectors/{id}","href":"/api-reference/endpoint/workspace-connectors/get"}]},{"group":"Workspace Connector Sync Logs","pages":[{"title":"List Workspace Connector Sync Logs","openapi":"GET /v1/workspace-connector-sync-logs","href":"/api-reference/endpoint/workspace-connector-sync-logs/get-all"},{"title":"Get Workspace Connector Sync Logs","openapi":"GET /v1/workspace-connector-sync-logs/{id}","href":"/api-reference/endpoint/workspace-connector-sync-logs/get"}]},{"group":"Blueprint Runs","pages":[{"title":"List Blueprint Runs","openapi":"GET /v1/blueprint-runs","href":"/api-reference/endpoint/blueprint-runs/get-all"},{"title":"Get Blueprint Runs","openapi":"GET /v1/blueprint-runs/{id}","href":"/api-reference/endpoint/blueprint-runs/get"}]}]}]},{"tab":"Data Model","icon":"database","pages":[{"title":"Data Model","href":"/object-reference/accounts"}]},{"tab":"Enums","icon":"list","pages":[{"title":"Enums","href":"/enums/banking-transaction-fee"}]},{"tab":"Connectors","icon":"plug","pages":[{"title":"Connectors","href":"/connectors"}]},{"tab":"MCP","icon":"robot","pages":[{"title":"MCP","href":"/mcp/introduction"}]},{"tab":"Graphing library","icon":"palette","pages":[{"title":"Graphing library","href":"/api-reference/graphing-library"}]}]},"basePath":"","title":"Create Media - Well Starter Kit","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","Page-D6S0Yh6q.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}