{"openapi":"3.1.0","info":{"title":"Streetbeat Pro","description":"Documentation of Streetbeat Pro API","version":"1.0.0"},"servers":[{"url":"https://api.streetbeat.com"}],"paths":{"/public/pro/api/v1/threads/":{"get":{"tags":["v1","threads"],"summary":"Get Threads","description":"Retrieves an existing thread.","operationId":"get_threads_public_pro_api_v1_threads__get","parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","description":"The unique identifier of the user.","examples":["1"],"title":"User Id"},"description":"The unique identifier of the user."},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Get threads before this thread ID (for scrolling down/older threads).","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Before"},"description":"Get threads before this thread ID (for scrolling down/older threads)."},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Get threads after this thread ID (for scrolling up/newer threads).","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"After"},"description":"Get threads after this thread ID (for scrolling up/newer threads)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of threads to return. Defaults to 20.","examples":[20],"default":20,"title":"Limit"},"description":"Number of threads to return. Defaults to 20."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["v1","threads"],"summary":"Create Thread","description":"Creates a new thread.","operationId":"create_thread_public_pro_api_v1_threads__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateThreadSpec"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}":{"get":{"tags":["v1","threads"],"summary":"Get Thread","description":"Retrieves an existing thread.","operationId":"get_thread_public_pro_api_v1_threads__thread_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Thread Id"},"description":"The unique identifier of the thread."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["v1","threads"],"summary":"Delete Thread","description":"Deletes an existing thread.","operationId":"delete_thread_public_pro_api_v1_threads__thread_id__delete","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Thread Id"},"description":"The unique identifier of the thread."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/cancel":{"post":{"tags":["v1","threads"],"summary":"Cancel Thread Run","description":"Cancels the currently running assistant task for the thread.","operationId":"cancel_thread_run_public_pro_api_v1_threads__thread_id__cancel_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Thread Id"},"description":"The unique identifier of the thread."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/messages":{"post":{"tags":["v1","messages"],"summary":"Add Message","description":"Adds a new message to the thread.","operationId":"add_message_public_pro_api_v1_threads__thread_id__messages_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Thread Id"},"description":"The unique identifier of the thread."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMessageSpec"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["v1","messages"],"summary":"Get Messages","description":"Retrieves all messages that belong to the thread.","operationId":"get_messages_public_pro_api_v1_threads__thread_id__messages_get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Thread Id"},"description":"The unique identifier of the thread."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageView"},"title":"Response Get Messages Public Pro Api V1 Threads  Thread Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/feedbacks":{"post":{"tags":["v1","feedbacks"],"summary":"Add Feedback","description":"Adds feedback to a message using a satisfaction score from 0 to 100.","operationId":"add_feedback_public_pro_api_v1_threads__thread_id__feedbacks_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Thread Id"},"description":"The unique identifier of the thread."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddFeedbackSpec"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["v1","feedbacks"],"summary":"Get Feedback","description":"Retrieves feedback with satisfaction scores for all messages in the thread.","operationId":"get_feedback_public_pro_api_v1_threads__thread_id__feedbacks_get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Thread Id"},"description":"The unique identifier of the thread."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FeedbackView"},"title":"Response Get Feedback Public Pro Api V1 Threads  Thread Id  Feedbacks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/runs":{"post":{"tags":["v1","runs"],"summary":"Create Run","description":"Creates a new run for the thread.","operationId":"create_run_public_pro_api_v1_threads__thread_id__runs_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Thread Id"},"description":"The unique identifier of the thread."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunSpec"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/runs/{run_id}":{"get":{"tags":["v1","runs"],"summary":"Get Run","description":"Retrieves an existing run.","operationId":"get_run_public_pro_api_v1_threads__thread_id__runs__run_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Thread Id"},"description":"The unique identifier of the thread."},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the run.","examples":["3d6b41cd-ee4e-4cf6-9088-6a85cf066d94"],"title":"Run Id"},"description":"The unique identifier of the run."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/files":{"get":{"tags":["v1","files"],"summary":"Get Files","description":"Retrieves all files that belong to the thread.","operationId":"get_files_public_pro_api_v1_threads__thread_id__files_get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"Thread Id"},"description":"The unique identifier of the thread."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/streetbeat_fastapi__services__pro__threads__FileView"},"title":"Response Get Files Public Pro Api V1 Threads  Thread Id  Files Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/files/{file_id}":{"get":{"tags":["v1","files"],"summary":"Get File","operationId":"get_file_public_pro_api_v1_threads__thread_id__files__file_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/streetbeat_fastapi__services__pro__threads__FileView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/files/{file_id}/download":{"get":{"tags":["v1","files"],"summary":"Download File","operationId":"download_file_public_pro_api_v1_threads__thread_id__files__file_id__download_get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/vector-stores/":{"get":{"tags":["v1","vector-stores"],"summary":"List Vector Stores","description":"Lists the vector stores.","operationId":"list_vector_stores_public_pro_api_v1_vector_stores__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/VectorStoreView"},"type":"array","title":"Response List Vector Stores Public Pro Api V1 Vector Stores  Get"}}}}}},"post":{"tags":["v1","vector-stores"],"summary":"Create Vector Store","description":"Creates a vector store.","operationId":"create_vector_store_public_pro_api_v1_vector_stores__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVectorStoreSpec"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VectorStoreView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/vector-stores/{vector_store_id}/files":{"post":{"tags":["v1","vector-stores"],"summary":"Attach File","description":"Attaches the files to the vector store.","operationId":"attach_file_public_pro_api_v1_vector_stores__vector_store_id__files_post","parameters":[{"name":"vector_store_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the vector store.","examples":["2d7e72fe-24f2-4970-94d9-bafc671756df"],"title":"Vector Store Id"},"description":"The unique identifier of the vector store."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachFilesSpec"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VectorStoreFileView"},"title":"Response Attach File Public Pro Api V1 Vector Stores  Vector Store Id  Files Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["v1","vector-stores"],"summary":"List Vector Store Files","operationId":"list_vector_store_files_public_pro_api_v1_vector_stores__vector_store_id__files_get","parameters":[{"name":"vector_store_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the vector store.","examples":["2d7e72fe-24f2-4970-94d9-bafc671756df"],"title":"Vector Store Id"},"description":"The unique identifier of the vector store."},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The unique identifier of the file after which to fetch next files.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"After"},"description":"The unique identifier of the file after which to fetch next files."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The number of files to fetch.","examples":[100],"title":"Limit"},"description":"The number of files to fetch."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VectorStoreFileViewPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["v1","vector-stores"],"summary":"Delete Vector Store Files","description":"Deletes the files from the vector store. It does not delete the files themselves.","operationId":"delete_vector_store_files_public_pro_api_v1_vector_stores__vector_store_id__files_delete","parameters":[{"name":"vector_store_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the vector store.","examples":["2d7e72fe-24f2-4970-94d9-bafc671756df"],"title":"Vector Store Id"},"description":"The unique identifier of the vector store."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFilesSpec"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/vector-stores/{vector_store_id}/files/{file_id}":{"delete":{"tags":["v1","vector-stores"],"summary":"Delete Vector Store File","description":"Deletes the file from the vector store. It does not delete the file itself.","operationId":"delete_vector_store_file_public_pro_api_v1_vector_stores__vector_store_id__files__file_id__delete","parameters":[{"name":"vector_store_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the vector store.","examples":["2d7e72fe-24f2-4970-94d9-bafc671756df"],"title":"Vector Store Id"},"description":"The unique identifier of the vector store."},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the file.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"],"title":"File Id"},"description":"The unique identifier of the file."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/vector-stores/{vector_store_id}":{"delete":{"tags":["v1","vector-stores"],"summary":"Delete Vector Store","description":"Deletes the vector stores. It does not delete files that were attached to the vector store.","operationId":"delete_vector_store_public_pro_api_v1_vector_stores__vector_store_id__delete","parameters":[{"name":"vector_store_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the vector store.","examples":["2d7e72fe-24f2-4970-94d9-bafc671756df"],"title":"Vector Store Id"},"description":"The unique identifier of the vector store."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/vector-stores/files":{"get":{"tags":["v1","vector-stores"],"summary":"List Files","operationId":"list_files_public_pro_api_v1_vector_stores_files_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/streetbeat_fastapi__services__pro__vector_stores__FileView"},"type":"array","title":"Response List Files Public Pro Api V1 Vector Stores Files Get"}}}}}}},"/public/pro/api/v1/vector-stores/files/upload":{"post":{"tags":["v1","vector-stores"],"summary":"Upload File","operationId":"upload_file_public_pro_api_v1_vector_stores_files_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_public_pro_api_v1_vector_stores_files_upload_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/streetbeat_fastapi__services__pro__vector_stores__FileView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/vector-stores/files/{file_id}/download":{"post":{"tags":["v1","vector-stores"],"summary":"Download File","operationId":"download_file_public_pro_api_v1_vector_stores_files__file_id__download_post","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/actions":{"get":{"tags":["v1","actions"],"summary":"Get Pending Actions","operationId":"get_pending_actions_public_pro_api_v1_threads__thread_id__actions_get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActionView"},"title":"Response Get Pending Actions Public Pro Api V1 Threads  Thread Id  Actions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/actions/{action_id}":{"put":{"tags":["v1","actions"],"summary":"Complete Action","operationId":"complete_action_public_pro_api_v1_threads__thread_id__actions__action_id__put","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/metadata":{"post":{"tags":["v1","metadata"],"summary":"Upsert Metadata","description":"Upserts metadata for a thread.","operationId":"upsert_metadata_public_pro_api_v1_threads__thread_id__metadata_post","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","title":"Thread Id"},"description":"The unique identifier of the thread."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertMetadataSpec"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["v1","metadata"],"summary":"Get All Metadata","description":"Retrieves all external metadata for a thread.","operationId":"get_all_metadata_public_pro_api_v1_threads__thread_id__metadata_get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","title":"Thread Id"},"description":"The unique identifier of the thread."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAllMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/threads/{thread_id}/metadata/{metadata_key}":{"get":{"tags":["v1","metadata"],"summary":"Get Metadata","description":"Retrieves specific metadata for a thread.","operationId":"get_metadata_public_pro_api_v1_threads__thread_id__metadata__metadata_key__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the thread.","title":"Thread Id"},"description":"The unique identifier of the thread."},{"name":"metadata_key","in":"path","required":true,"schema":{"type":"string","description":"The key of the metadata to retrieve.","title":"Metadata Key"},"description":"The key of the metadata to retrieve."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/pro/api/v1/news/":{"get":{"tags":["v1","news"],"summary":"Get News","description":"Retrieves news articles with optional filtering. By default returns news from the last hour for all companies and categories.","operationId":"get_news_public_pro_api_v1_news__get","parameters":[{"name":"symbols","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"List of symbols to filter by (comma-separated)","title":"Symbols"},"description":"List of symbols to filter by (comma-separated)"},{"name":"categories","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"List of categories to filter by (comma-separated)","title":"Categories"},"description":"List of categories to filter by (comma-separated)"},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start time for news articles in ISO format (e.g. 2024-01-01T00:00:00Z)","title":"Start Time"},"description":"Start time for news articles in ISO format (e.g. 2024-01-01T00:00:00Z)"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End time for news articles in ISO format (e.g. 2024-01-01T00:00:00Z)","title":"End Time"},"description":"End time for news articles in ISO format (e.g. 2024-01-01T00:00:00Z)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NewsView"},"title":"Response Get News Public Pro Api V1 News  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActionView":{"properties":{"id":{"type":"string","title":"Id","description":"The unique identifier of the action.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"]},"thread_id":{"type":"string","title":"Thread Id","description":"The identifier of the thread that this action belongs to.","examples":["e3f20b5b-fd77-4de5-ba9b-d3fbad143571"]},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id","description":"The identifier of the run that this action belongs to.","examples":["4d358a0e-182d-4251-a981-4d8fa2b0a57a"]},"type":{"type":"string","title":"Type","description":"The type of the action.","examples":["set_products"]},"input":{"additionalProperties":true,"type":"object","title":"Input","description":"The input of the action.","examples":["{}"]},"output":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output","description":"The output of the action.","examples":["{}"]},"status":{"type":"string","enum":["queued","in_progress","cancelling","cancelled","failed","completed","expired"],"title":"Status","description":"The current status of the action."},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"Timestamp for when the action will expire."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Timestamp for when the action was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The timestamp for when the action was updated."}},"type":"object","required":["id","thread_id","type","input","status","expires_at","created_at","updated_at"],"title":"ActionView"},"AddFeedbackSpec":{"properties":{"message_id":{"type":"string","title":"Message Id","description":"The unique identifier of the message.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"]},"satisfaction":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Satisfaction","description":"The satisfaction score from 0 to 100.","examples":[85]},"explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explanation","description":"An optional explanation for the feedback.","examples":[null]}},"type":"object","required":["message_id","satisfaction"],"title":"AddFeedbackSpec"},"AddMessageSpec":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role","description":"The entity that produced this message.","examples":["user"]},"content":{"items":{"$ref":"#/components/schemas/TextContent"},"type":"array","title":"Content","description":"The content of the message."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional optional metadata associated with the message, stored as a dictionary of key-value pairs.","default":{}}},"type":"object","required":["role","content"],"title":"AddMessageSpec"},"AssetAllocationView":{"properties":{"symbol":{"type":"string","title":"Symbol"},"weight":{"type":"string","title":"Weight"}},"type":"object","required":["symbol","weight"],"title":"AssetAllocationView"},"AttachFilesSpec":{"properties":{"file_ids":{"items":{"type":"string"},"type":"array","title":"File Ids","description":"The unique identifiers of the files that should be attached to the vector store.","examples":[["3d6b41cd-ee4e-4cf6-9088-6a85cf066d94","e3f20b5b-fd77-4de5-ba9b-d3fbad143571"]]}},"type":"object","required":["file_ids"],"title":"AttachFilesSpec"},"Body_upload_file_public_pro_api_v1_vector_stores_files_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_public_pro_api_v1_vector_stores_files_upload_post"},"CreateRunSpec":{"properties":{"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","description":"If true, returns a stream of events that happen during the Run as server-sent events.","default":false,"examples":[false]}},"type":"object","title":"CreateRunSpec"},"CreateThreadSpec":{"properties":{"user_id":{"type":"string","title":"User Id","description":"The unique identifier of the user.","examples":["1"]}},"type":"object","required":["user_id"],"title":"CreateThreadSpec"},"CreateVectorStoreSpec":{"properties":{"name":{"type":"string","title":"Name","description":"The name of the vector store.","examples":["My vector store"]},"description":{"type":"string","title":"Description","description":"The description of the vector store.","examples":["Some description"]}},"type":"object","required":["name","description"],"title":"CreateVectorStoreSpec"},"CustomDataArtifactView":{"properties":{"type":{"type":"string","const":"custom_data","title":"Type","default":"custom_data"},"version":{"type":"string","title":"Version"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["version","data"],"title":"CustomDataArtifactView"},"DeleteFilesSpec":{"properties":{"file_ids":{"items":{"type":"string"},"type":"array","title":"File Ids","description":"The unique identifiers of the files that should be deleted from the vector store.","examples":[["3d6b41cd-ee4e-4cf6-9088-6a85cf066d94","e3f20b5b-fd77-4de5-ba9b-d3fbad143571"]]}},"type":"object","required":["file_ids"],"title":"DeleteFilesSpec"},"FeedbackView":{"properties":{"satisfaction":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Satisfaction","description":"The satisfaction score from 0 to 100.","examples":[85]},"explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explanation","description":"An optional explanation for the feedback.","examples":[null]},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Timestamp for when the feedback was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Timestamp for when the feedback was updated."}},"type":"object","required":["satisfaction","created_at","updated_at"],"title":"FeedbackView"},"FileArtifactView":{"properties":{"type":{"type":"string","const":"file","title":"Type","default":"file"},"file":{"$ref":"#/components/schemas/streetbeat_fastapi__services__pro__threads__FileView"}},"type":"object","required":["file"],"title":"FileArtifactView"},"FinecoPortfolioArtifactView":{"properties":{"type":{"type":"string","const":"fineco_portfolio","title":"Type","default":"fineco_portfolio"},"portfolio_id":{"type":"string","title":"Portfolio Id","description":"The ID of the portfolio.","default":""},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"The data of the portfolio."}},"type":"object","required":["data"],"title":"FinecoPortfolioArtifactView"},"GetAllMetadataResponse":{"properties":{"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"All external metadata entries"}},"type":"object","required":["metadata"],"title":"GetAllMetadataResponse"},"GetMetadataResponse":{"properties":{"metadata_key":{"type":"string","title":"Metadata Key","description":"The metadata key"},"metadata_value":{"additionalProperties":true,"type":"object","title":"Metadata Value","description":"The metadata value"}},"type":"object","required":["metadata_key","metadata_value"],"title":"GetMetadataResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImpactView":{"properties":{"symbol":{"type":"string","title":"Symbol","description":"Symbol of the affected company or ETF"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline","description":"Retired. Null on articles analysed after the rebuild"},"summary":{"type":"string","title":"Summary","description":"Detailed summary of how the news affects this symbol"},"tweet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tweet","description":"Retired. Null on articles analysed after the rebuild"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score","description":"Whether the business is better or worse off: -1, 0 or 1. Judges the business, not the share price, on articles analysed after the rebuild"},"importance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Importance","description":"How much this changes what a holder of this company should understand (0-100). A laddered judgement on articles analysed after the rebuild, a free rating on older ones"},"relevance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Relevance","description":"How relevant the news is to this symbol (0-100)"},"explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explanation","description":"What the news changes for this company and by what mechanism, on articles analysed after the rebuild"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories","description":"Categories this impact falls under. Open strings, not the retired closed set: the classifier replaced that vocabulary and 23 of its 24 values are not in it"}},"type":"object","required":["symbol","summary"],"title":"ImpactView","description":"One company's view of an article, for the pro API.\n\nThe field NAMES are the original ones and the query aliases the rebuilt\ncolumns onto them: `importance` is materiality, `explanation` is\nimplication, `score` is direction. The pro API reads app.article_asset\ndirectly, so there is one vintage here and no picking to do - the aliasing\nhappens once, in `get_rebuilt_assets`, and a consumer does not change.\n\nThat is the same contract /api/v2/news has always had, and the two endpoints\nagreeing matters more than either being individually pure. The rebuilt\nvocabulary - implication, materiality, direction - gets its own names when\nthere is a new API version to put them in, not as a second set of keys here\ncarrying the same facts under different names.\n\nFields that were retired outright keep their keys and go nullable, so an\nexisting consumer parses the same shape:\n\n  headline, tweet   per-impact prose nothing selected\n  confidence        99.4% of values were 70 or above and it correlates\n                    0.737 with importance - it was importance wearing a\n                    hat, and a model's self-reported confidence measures\n                    nothing. Removed outright rather than left null."},"MessageView":{"properties":{"id":{"type":"string","title":"Id","description":"The unique identifier of the message.","examples":["6faa83cf-d64e-4387-b908-333f9cdfc834"]},"thread_id":{"type":"string","title":"Thread Id","description":"The identifier of the thread that this message belongs to.","examples":["e3f20b5b-fd77-4de5-ba9b-d3fbad143571"]},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id","description":"The identifier of the run that this message belongs to.","examples":["4d358a0e-182d-4251-a981-4d8fa2b0a57a"]},"role":{"type":"string","enum":["user","assistant"],"title":"Role","description":"The entity that produced this message."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"An optional name for the participant.","examples":[null]},"content":{"items":{"$ref":"#/components/schemas/TextContent"},"type":"array","title":"Content","description":"The content of the message."},"artifacts":{"items":{"oneOf":[{"$ref":"#/components/schemas/FileArtifactView"},{"$ref":"#/components/schemas/CustomDataArtifactView"},{"$ref":"#/components/schemas/PortfolioArtifactView"},{"$ref":"#/components/schemas/FinecoPortfolioArtifactView"}],"discriminator":{"propertyName":"type","mapping":{"custom_data":"#/components/schemas/CustomDataArtifactView","file":"#/components/schemas/FileArtifactView","fineco_portfolio":"#/components/schemas/FinecoPortfolioArtifactView","portfolio":"#/components/schemas/PortfolioArtifactView"}}},"type":"array","title":"Artifacts","description":"The artifacts that belong to the message."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Timestamp for when the message was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Timestamp for when the message was updated."}},"type":"object","required":["id","thread_id","run_id","role","name","content","artifacts","created_at","updated_at"],"title":"MessageView"},"MetadataResponse":{"properties":{"metadata_key":{"type":"string","title":"Metadata Key","description":"The metadata key"},"metadata_value":{"additionalProperties":true,"type":"object","title":"Metadata Value","description":"The saved metadata value"}},"type":"object","required":["metadata_key","metadata_value"],"title":"MetadataResponse"},"NewsView":{"properties":{"id":{"type":"integer","title":"Id","description":"Unique identifier for the news article"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the article was published"},"headline":{"type":"string","title":"Headline","description":"Main headline of the article"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","description":"Summary of the full article content. Null when the summary was withheld for inventing a figure the article does not support - absent, not empty, because the two are different facts"},"tweet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tweet","description":"Retired. Null on articles analysed after the rebuild"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories","description":"Categories this article falls under. Open strings, not the retired closed set"},"impacts":{"items":{"$ref":"#/components/schemas/ImpactView"},"type":"array","title":"Impacts","description":"List of impacts this news has on different symbols"}},"type":"object","required":["id","created_at","headline","impacts"],"title":"NewsView"},"PortfolioArtifactView":{"properties":{"type":{"type":"string","const":"portfolio","title":"Type","default":"portfolio"},"portfolio":{"$ref":"#/components/schemas/PortfolioView"}},"type":"object","required":["portfolio"],"title":"PortfolioArtifactView"},"PortfolioView":{"properties":{"id":{"type":"string","title":"Id"},"symbol":{"type":"string","title":"Symbol"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"allocations":{"items":{"$ref":"#/components/schemas/AssetAllocationView"},"type":"array","title":"Allocations"}},"type":"object","required":["id","symbol","name","description","allocations"],"title":"PortfolioView"},"RunView":{"properties":{"id":{"type":"string","title":"Id","description":"The unique identifier of the run.","examples":["3d6b41cd-ee4e-4cf6-9088-6a85cf066d94"]},"status":{"type":"string","enum":["queued","in_progress","requires_action","cancelling","cancelled","failed","completed","expired"],"title":"Status","description":"The current status of the run."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp for when the run was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The timestamp for when the run was updated."}},"type":"object","required":["id","status","created_at","updated_at"],"title":"RunView"},"Text":{"properties":{"value":{"type":"string","title":"Value","description":"Text value","examples":["What is the current price of TME?"]}},"type":"object","required":["value"],"title":"Text"},"TextContent":{"properties":{"type":{"type":"string","const":"text","title":"Type","default":"text"},"text":{"$ref":"#/components/schemas/Text","description":"Wrapper for text."}},"type":"object","required":["text"],"title":"TextContent"},"ThreadListItemView":{"properties":{"id":{"type":"string","title":"Id","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"]},"user_id":{"type":"string","title":"User Id","description":"The unique identifier of the user.","examples":["1"]},"status":{"type":"string","enum":["idle","busy"],"title":"Status","description":"The current status of the thread.","examples":["idle"]},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp for when the thread was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The timestamp for when the thread was updated."},"title":{"type":"string","title":"Title","description":"The title of the thread.","examples":["My thread"]}},"type":"object","required":["id","user_id","status","created_at","updated_at","title"],"title":"ThreadListItemView"},"ThreadListView":{"properties":{"threads":{"items":{"$ref":"#/components/schemas/ThreadListItemView"},"type":"array","title":"Threads","description":"The list of threads."},"has_previous":{"type":"boolean","title":"Has Previous","description":"Whether there are older threads available (use first thread ID as \"before\" cursor)."},"has_next":{"type":"boolean","title":"Has Next","description":"Whether there are newer threads available (use last thread ID as \"after\" cursor)."}},"type":"object","required":["threads","has_previous","has_next"],"title":"ThreadListView"},"ThreadView":{"properties":{"id":{"type":"string","title":"Id","description":"The unique identifier of the thread.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"]},"user_id":{"type":"string","title":"User Id","description":"The unique identifier of the user.","examples":["1"]},"status":{"type":"string","enum":["idle","busy"],"title":"Status","description":"The current status of the thread.","examples":["idle"]},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp for when the thread was created."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The timestamp for when the thread was updated."}},"type":"object","required":["id","user_id","status","created_at","updated_at"],"title":"ThreadView"},"UpsertMetadataSpec":{"properties":{"metadata_key":{"type":"string","title":"Metadata Key","description":"The key for the metadata entry"},"metadata_value":{"additionalProperties":true,"type":"object","title":"Metadata Value","description":"The value to store as metadata"}},"type":"object","required":["metadata_key","metadata_value"],"title":"UpsertMetadataSpec"},"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"},"VectorStoreFileView":{"properties":{"id":{"type":"string","title":"Id","description":"The unique identifier of the file.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"]},"name":{"type":"string","title":"Name","description":"The name of the file.","examples":["some_document.pdf"]},"content_type":{"type":"string","title":"Content Type","description":"The content type of the file.","examples":["application/pdf"]},"bytes":{"type":"integer","title":"Bytes","description":"The size of the file in bytes.","examples":[1029167]},"status":{"type":"string","enum":["in_progress","completed","cancelled","failed"],"title":"Status","description":"The current status of the file."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp for when the file was attached to the vector store."}},"type":"object","required":["id","name","content_type","bytes","status","created_at"],"title":"VectorStoreFileView"},"VectorStoreFileViewPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/VectorStoreFileView"},"type":"array","title":"Data","description":"The list of files that are attached to the vector store."},"has_more":{"type":"boolean","title":"Has More","description":"Indicates whether there is more data to be fetched."},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id","description":"The unique identifier of the first file.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"]},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id","description":"The unique identifier of the last file.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"]}},"type":"object","required":["data","has_more","first_id","last_id"],"title":"VectorStoreFileViewPage"},"VectorStoreView":{"properties":{"id":{"type":"string","title":"Id","description":"The unique identifier of the vector store.","examples":["2d7e72fe-24f2-4970-94d9-bafc671756df"]},"name":{"type":"string","title":"Name","description":"The name of the vector store.","examples":["My vector store"]},"description":{"type":"string","title":"Description","description":"The description of the vector store.","examples":["Some description"]},"file_count":{"type":"integer","title":"File Count","description":"The number of files attached to the vector store.","examples":[12]},"status":{"type":"string","enum":["expired","in_progress","completed"],"title":"Status","description":"The current status of the vector store."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp for when the vector store was created."}},"type":"object","required":["id","name","description","file_count","status","created_at"],"title":"VectorStoreView"},"streetbeat_fastapi__services__pro__threads__FileView":{"properties":{"id":{"type":"integer","title":"Id","description":"The unique identifier of the file."},"thread_id":{"type":"string","title":"Thread Id","description":"The identifier of the thread that this file belongs to.","examples":["e3f20b5b-fd77-4de5-ba9b-d3fbad143571"]},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id","description":"The identifier of the run that this file belongs to.","examples":["4d358a0e-182d-4251-a981-4d8fa2b0a57a"]},"name":{"type":"string","title":"Name","description":"The name of the file."},"type":{"type":"string","title":"Type","description":"The content type of the file.","examples":["text/csv","image/png"]},"size":{"type":"integer","title":"Size","description":"The size of the file in bytes."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Timestamp for when the file was created."}},"type":"object","required":["id","thread_id","name","type","size","created_at"],"title":"FileView"},"streetbeat_fastapi__services__pro__vector_stores__FileView":{"properties":{"id":{"type":"string","title":"Id","description":"The unique identifier of the file.","examples":["8ebdb866-ea58-4380-83e7-1be18273f41e"]},"name":{"type":"string","title":"Name","description":"The name of the file.","examples":["some_document.pdf"]},"content_type":{"type":"string","title":"Content Type","description":"The content type of the file.","examples":["application/pdf"]},"bytes":{"type":"integer","title":"Bytes","description":"The size of the file in bytes.","examples":[1029167]},"status":{"type":"string","enum":["uploaded","processed","error"],"title":"Status","description":"The current status of the file."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp for when the file was created."}},"type":"object","required":["id","name","content_type","bytes","status","created_at"],"title":"FileView"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","name":"X-Api-Key","in":"header"}}},"security":[{"ApiKeyAuth":[]}]}