Copywriter
Copywriter · GPT 작업
AaronChatPDF
POST /link/queryMake sure to collect the 'instructions' field before calling this endpoint.Extract and transform content from a provided linkPOST /link/save-linksCall this endpoint when copywrite articale to have links.POST /link/get-article-linksCall this endpoint after saving articale links.GET /file/upload-linkCreate a unique link for file uploadsPOST /file/rewriteGet content of an uploaded file and possibly rewrite or transform it
원본 API 스키마
{
"openapi": "3.0.1",
"info": {
"title": "AaronChatPDF",
"version": "v1"
},
"servers": [
{
"url": "https://api.copilot.us/run/654d23dc80b7a5ccae50e700/65786cb0956caf0360799198"
}
],
"paths": {
"/link/query": {
"post": {
"summary": "Make sure to collect the 'instructions' field before calling this endpoint.Extract and transform content from a provided link",
"operationId": "ExtractContent",
"requestBody": {
"description": "Link and instructions details for extracting content",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExtractContentBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful response containing the extracted content and any associated instructions.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"$ref": "#/components/schemas/ResponseBody"
}
}
}
}
}
},
"400": {
"description": "Bad request error."
},
"500": {
"description": "Internal server error."
}
}
}
},
"/link/save-links": {
"post": {
"summary": "Call this endpoint when copywrite articale to have links.",
"operationId": "SaveLinks",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PageLinksRequestBody"
}
}
}
},
"responses": {
"200": {
"description": "Response for saving a links.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StatusIdResponseSchema"
}
}
}
}
}
}
},
"/link/get-article-links": {
"post": {
"summary": "Call this endpoint after saving articale links.",
"operationId": "GetPageLinks",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IdSchema"
}
}
}
},
"responses": {
"200": {
"description": "Successful response containing the extracted links.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"$ref": "#/components/schemas/PageLinksResponse"
}
}
}
}
}
},
"400": {
"description": "Bad request error."
},
"500": {
"description": "Internal server error."
}
}
}
},
"/file/upload-link": {
"get": {
"summary": "Create a unique link for file uploads",
"operationId": "CreateUploadLink",
"responses": {
"200": {
"description": "Successful response containing the unique file upload link.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UploadLinkResponseBody"
}
}
}
},
"400": {
"description": "Bad request error."
},
"500": {
"description": "Internal server error."
}
}
}
},
"/file/rewrite": {
"post": {
"summary": "Get content of an uploaded file and possibly rewrite or transform it",
"operationId": "GetRewrittenContent",
"requestBody": {
"description": "Information regarding the desired transformation on the file content",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RewriteBody"
}
}
}
},
"responses": {
"200": {
"description": "Successful response containing the transformed content and any associated instructions.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SummaryResponseBody"
}
}
}
},
"400": {
"description": "Bad request error."
},
"500": {
"description": "Internal server error."
}
}
}
}
},
"components": {
"schemas": {
"RewriteBody": {
"type": "object",
"properties": {
"instructions": {
"type": "string",
"description": "Instructions for text manipulations to be executed on the extracted content."
}
}
},
"ResponseBody": {
"type": "object",
"properties": {
"result": {
"type": "array",
"items": {
"type": "object",
"properties": {
"responseInstructions": {
"type": "string",
"description": "Instructions regarding the response content"
},
"content": {
"type": "string",
"description": "The actual extracted content or its transformation"
}
}
}
}
}
},
"ExtractContentBody": {
"type": "object",
"properties": {
"instructions": {
"type": "string",
"description": "ALWAYS Populate this field with instructions for text manipulations to be executed on the extracted content"
},
"urls": {
"type": "array",
"description": "URL links from which content should be extracted",
"items": {
"type": "string"
}
}
},
"required": [
"instructions"
]
},
"UploadLinkResponseBody": {
"type": "object",
"properties": {
"responseInstructions": {
"type": "string"
}
}
},
"SummaryResponseBody": {
"type": "object",
"properties": {
"summary": {
"type": "string"
},
"responseInstructions": {
"type": "string"
}
}
},
"StatusIdResponseSchema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"id": {
"type": "string"
},
"responseInstructions": {
"type": "string"
}
}
},
"IdSchema": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
},
"PageLinksRequestBody": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Page url to extract links."
}
},
"required": [
"url"
]
},
"PageLinksResponse": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"responseInstructions": {
"type": "string"
},
"links": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Text."
},
"link": {
"type": "string",
"description": "Appropriate link to text."
}
}
}
}
}
}
}
}
}
}