{"openapi":"3.1.0","info":{"title":"Infinite Creator API","description":"For more information, refer to the [official documentation](https://docs.infinitecreator.com).","version":"1.3.0"},"servers":[{"url":"https://api.infinitecreator.com"}],"paths":{"/v1/tasks":{"post":{"tags":["tasks"],"summary":"Create a task","description":"Creates a task from real estate listing data.","operationId":"create_endpoint_v1_tasks_post","parameters":[{"name":"infinitecreator-beta","in":"header","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Beta headers allow access to experimental features before they become part of the standard API.","title":"Infinitecreator-Beta"},"description":"Beta headers allow access to experimental features before they become part of the standard API."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Listing"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledTask"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Unauthorized"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Not Found"},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Method Not Allowed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["tasks"],"summary":"List all tasks","description":"The tasks are returned sorted by creation date, with the most recently created tasks appearing first.","operationId":"list_endpoint_v1_tasks_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"enum":["PENDING","RUNNING","FAILED","SUCCEEDED"],"type":"string"},{"type":"null"}],"description":"The status of the task.","title":"State"},"description":"The status of the task."},{"name":"starting_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A cursor to use in pagination. `starting_after` is an object ID that defines your place in the list. For example, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after`=`obj_foo` to fetch the next page of the list.","title":"Starting After"},"description":"A cursor to use in pagination. `starting_after` is an object ID that defines your place in the list. For example, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after`=`obj_foo` to fetch the next page of the list."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"This specifies a limit on the number of objects to return, ranging between 1 and 100.","default":10,"title":"Limit"},"description":"This specifies a limit on the number of objects to return, ranging between 1 and 100."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Task_"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Unauthorized"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Not Found"},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Method Not Allowed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/{task_id}":{"get":{"tags":["tasks"],"summary":"Retrieve a task","description":"Retrieves the task with the given ID.","operationId":"retrieve_endpoint_v1_tasks__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","minLength":8,"description":"ID of the Task","title":"Task Id"},"description":"ID of the Task"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Unauthorized"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Forbidden"},"404":{"description":"Task not found"},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Method Not Allowed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organization":{"get":{"tags":["organization"],"summary":"Retrieve your organization","description":"Retrieves your organization.","operationId":"retrieve_organization_v1_organization_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Payment Required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}}}},"/v1/webhook_endpoints":{"post":{"tags":["webhook_endpoints"],"summary":"Create a webhook endpoint","description":"A webhook endpoint must have a `url`.","operationId":"create_webhook_endpoint_v1_webhook_endpoints_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedWebhookEndpoint"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Unauthorized"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Not Found"},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Method Not Allowed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["webhook_endpoints"],"summary":"List all webhook endpoints","description":"Returns a list of your webhook endpoints.","operationId":"list_endpoint_v1_webhook_endpoints_get","parameters":[{"name":"starting_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A cursor to use in pagination. `starting_after` is an object ID that defines your place in the list. For example, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after`=`obj_foo` to fetch the next page of the list.","title":"Starting After"},"description":"A cursor to use in pagination. `starting_after` is an object ID that defines your place in the list. For example, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after`=`obj_foo` to fetch the next page of the list."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"This specifies a limit on the number of objects to return, ranging between 1 and 100.","default":10,"title":"Limit"},"description":"This specifies a limit on the number of objects to return, ranging between 1 and 100."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WebhookEndpoint_"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Unauthorized"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Not Found"},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Method Not Allowed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhook_endpoints/{webhook_endpoint_id}":{"patch":{"tags":["webhook_endpoints"],"summary":"Update a webhook endpoint","description":"Updates the webhook endpoint.","operationId":"update_webhook_endpoint_v1_webhook_endpoints__webhook_endpoint_id__patch","parameters":[{"name":"webhook_endpoint_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the webhook endpoint","title":"Webhook Endpoint Id"},"description":"ID of the webhook endpoint"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Unauthorized"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Forbidden"},"404":{"description":"Webhook endpoint not found"},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Method Not Allowed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["webhook_endpoints"],"summary":"Delete a webhook endpoint","operationId":"delete_webhook_endpoint_v1_webhook_endpoints__webhook_endpoint_id__delete","parameters":[{"name":"webhook_endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Endpoint Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Unauthorized"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Not Found"},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Method Not Allowed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["webhook_endpoints"],"summary":"Retrieve a webhook endpoint","description":"Retrieves the webhook endpoint with the given ID.","operationId":"retrieve_endpoint_v1_webhook_endpoints__webhook_endpoint_id__get","parameters":[{"name":"webhook_endpoint_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the webhook endpoint","title":"Webhook Endpoint Id"},"description":"ID of the webhook endpoint"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Unauthorized"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Forbidden"},"404":{"description":"Webhook endpoint not found"},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Method Not Allowed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"APIError":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"}},"additionalProperties":false,"type":"object","title":"APIError"},"Address":{"properties":{"street":{"type":"string","title":"Street","examples":["123 Main Street"]},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","examples":["NY"]},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","examples":["New York"]},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code","examples":["10001"]}},"type":"object","required":["street"],"title":"Address"},"Agent":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the object.","examples":["A12345678"]},"first_name":{"type":"string","maxLength":255,"title":"First Name","description":"First name of the agent","examples":["John"]},"last_name":{"type":"string","maxLength":255,"title":"Last Name","description":"Last name of the agent","examples":["Doe"]},"picture":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Picture","description":"Profile picture of the agent.","examples":["https://example.com/profile_picture.png"]},"designation":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Designation","description":"Designation of the agent","examples":["Licensed Real Estate Associate"]},"phones":{"items":{"$ref":"#/components/schemas/Phone"},"type":"array","title":"Phones","description":"Phone numbers of the agent"},"emails":{"items":{"$ref":"#/components/schemas/Email"},"type":"array","title":"Emails","description":"Email addresses of the agent"},"licenses":{"items":{"$ref":"#/components/schemas/License"},"type":"array","title":"Licenses","description":"Licenses of the agent"},"video_options":{"$ref":"#/components/schemas/VideoOptions","description":"Customize the look and feel of the video for this agent."},"offices":{"items":{"$ref":"#/components/schemas/Office"},"type":"array","title":"Offices","description":"Offices of the agent"}},"type":"object","required":["id","first_name","last_name"],"title":"Agent"},"Asset":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"Publicly accessible URL of the asset. See [our documentation](https://docs.infinitecreator.com/api-reference/inputs#images) for more information.","examples":["https://example.com/image.jpg"]},"type":{"type":"string","const":"image","title":"Type","description":"Type of asset","default":"image"}},"type":"object","required":["url"],"title":"Asset"},"CreatedWebhookEndpoint":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"The URL of the webhook endpoint."},"id":{"type":"string","title":"Id","description":"Unique identifier for the object."},"active":{"type":"boolean","title":"Active","description":"Whether the webhook endpoint is enabled."},"secret":{"type":"string","title":"Secret","description":"The endpoint's secret, used to generate webhook signatures. Only returned at creation."}},"type":"object","required":["url","id","active","secret"],"title":"CreatedWebhookEndpoint"},"DroppedAsset":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Brief reason for dropping the asset, if any.","examples":["quality","too_big","download_error"]}},"type":"object","required":["url"],"title":"DroppedAsset"},"Email":{"properties":{"address":{"type":"string","format":"email","title":"Address","description":"Email address","examples":["john.doe@example.com"]}},"type":"object","required":["address"],"title":"Email"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"License":{"properties":{"number":{"type":"string","maxLength":100,"minLength":1,"title":"Number","description":"License number","examples":["1234567890"]},"state":{"type":"string","maxLength":64,"minLength":1,"title":"State","description":"State of the license","examples":["NY","FL","LA"]}},"type":"object","required":["number","state"],"title":"License"},"Listing":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the object.","examples":["L12345678"]},"assets":{"items":{"$ref":"#/components/schemas/Asset"},"type":"array","maxItems":100,"minItems":5,"title":"Assets","description":"Listing assets."},"agents":{"items":{"$ref":"#/components/schemas/Agent"},"type":"array","maxItems":20,"minItems":1,"title":"Agents","description":"Agents associated with the listing. We will make 1 video per agent."},"address":{"$ref":"#/components/schemas/Address","description":"Listing address."},"bedrooms":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Bedrooms","description":"Number of bedrooms","examples":[3]},"bathrooms":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Bathrooms","description":"Number of bathrooms","examples":[2]},"half_bathrooms":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Half Bathrooms","description":"Number of half bathrooms","examples":[1]},"interior_square_footage":{"anyOf":[{"type":"number","minimum":1.0},{"type":"null"}],"title":"Interior Square Footage","description":"Interior square footage","examples":[1231.5]}},"type":"object","required":["id","assets","agents"],"title":"Listing"},"Office":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"address":{"anyOf":[{"$ref":"#/components/schemas/Address"},{"type":"null"}]},"phone_number":{"anyOf":[{"$ref":"#/components/schemas/Phone"},{"type":"null"}]}},"type":"object","title":"Office"},"OrganizationResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the object."},"balance":{"type":"integer","title":"Balance","description":"Current API credit balance. Also available through the Developers page."}},"type":"object","required":["id","balance"],"title":"OrganizationResponse"},"Page_Task_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Task"},"type":"array","title":"Data","description":"An array containing the actual response elements, paginated by any request parameters."},"has_more":{"type":"boolean","title":"Has More","description":"Whether or not there are more elements available after this set. If false, this set comprises the end of the list."}},"type":"object","required":["data","has_more"],"title":"Page[Task]"},"Page_WebhookEndpoint_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WebhookEndpoint"},"type":"array","title":"Data","description":"An array containing the actual response elements, paginated by any request parameters."},"has_more":{"type":"boolean","title":"Has More","description":"Whether or not there are more elements available after this set. If false, this set comprises the end of the list."}},"type":"object","required":["data","has_more"],"title":"Page[WebhookEndpoint]"},"Phone":{"properties":{"number":{"type":"string","title":"Number","description":"Phone number. We accept a number in any format (E164, national, international etc), assuming it can be interpreted with the region supplied. If we fail to parse your phone number, it will not be used.","examples":["+1 (805) 293-2878","(512) 692-7898","+15122401878","1800MICROSOFT"]},"type":{"anyOf":[{"type":"string","enum":["office","mobile","direct"]},{"type":"null"}],"title":"Type","description":"Type of phone number.","examples":["mobile"]},"region":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Region","description":"The region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format.","default":"US","examples":["US","CA"]}},"type":"object","required":["number"],"title":"Phone"},"ScheduledTask":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the object.","examples":["01K364FEGEDX32AK5RK447H2KP"]}},"type":"object","required":["id"],"title":"ScheduledTask"},"Task":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the object.","examples":["01K364FEGEDX32AK5RK447H2KP"]},"state":{"type":"string","enum":["PENDING","RUNNING","FAILED","SUCCEEDED"],"title":"State","description":"State of the task","default":"PENDING","examples":["RUNNING","FAILED","SUCCEEDED"]},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message","description":"If task state is FAILED, this will contain a brief description of the error"},"results":{"items":{"$ref":"#/components/schemas/TaskResult"},"type":"array","title":"Results","description":"If task state is SUCCEEDED, this will contain the results of the task"},"dropped_assets":{"items":{"$ref":"#/components/schemas/DroppedAsset"},"type":"array","title":"Dropped Assets","description":"If some of the input assets did not pass our internal checks, this will contain the assets that were dropped from the video along with a brief description of the error"}},"type":"object","required":["id"],"title":"Task"},"TaskResult":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"URL of the video","examples":["https://cdn.infinitecreator.com/example.mp4"]},"preview_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Preview Url","description":"URL of the preview gif. This is only available if `create_preview` is enabled.","examples":["https://cdn.infinitecreator.com/example.gif"]},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata","description":"Metadata specified at Task creation."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Time when the video was created.","examples":["2026-12-03T23:22:51.664867+00:00"]}},"type":"object","required":["agent_id","url","created_at"],"title":"TaskResult"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VideoOptions":{"properties":{"ratio":{"type":"string","enum":["1920:1080","1080:1920"],"title":"Ratio","description":"Resolution of the output video.","default":"1920:1080","examples":["1920:1080","1080:1920"]},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id","description":"ID of the Template to use."},"template_data":{"additionalProperties":{"type":"string"},"type":"object","title":"Template Data","description":"Set of key-value pairs corresponding to the data layers of the Template. Only takes effect if `template_id` is specified."},"create_preview":{"type":"boolean","title":"Create Preview","description":"When this is enabled, a short gif will be generated along with the main video.","default":false},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata","description":"Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Key-value pairs specified here can be found unchanged within the corresponding Task result. Supports up to 50 keys, with maximum key length of 40 characters and maximum value length of 500 characters. Keys and values are stored as strings. Keys cannot contain square brackets. Don't store any sensitive information (bank account numbers, card details, and so on) as metadata."}},"type":"object","title":"VideoOptions"},"WebhookEndpoint":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"The URL of the webhook endpoint."},"id":{"type":"string","title":"Id","description":"Unique identifier for the object."},"active":{"type":"boolean","title":"Active","description":"Whether the webhook endpoint is enabled."}},"type":"object","required":["url","id","active"],"title":"WebhookEndpoint"},"WebhookEndpointCreateRequest":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"The URL of the webhook endpoint."}},"type":"object","required":["url"],"title":"WebhookEndpointCreateRequest"},"WebhookEndpointUpdateRequest":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Url","description":"The URL of the webhook endpoint."},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active","description":"Whether the webhook endpoint is enabled."}},"type":"object","title":"WebhookEndpointUpdateRequest"}}}}