Canva
Canva · Acciones GPT
Canva Plugin
A plugin that allows the user to generate designs from the user query.
POST /designs-from-inputGet a list of Canva designs to choose from.
Esquema original API
{
"openapi": "3.1.0",
"info": {
"title": "Canva Plugin",
"description": "A plugin that allows the user to generate designs from the user query.",
"version": "v3"
},
"servers": [
{
"url": "https://chatgpt-plugin.canva.com"
}
],
"paths": {
"/designs-from-input": {
"post": {
"operationId": "generateDesigns",
"summary": "Get a list of Canva designs to choose from.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GenerateDesignsRequest"
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GenerateDesignsResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"GenerateDesignsRequest": {
"type": "object",
"properties": {
"locale": {
"description": "The 2-letter ISO language code and the 2-letter country code the user is using, separated by a dash.",
"type": "string"
},
"input": {
"description": "User input for generating the design.",
"type": "string",
"maxLength": 4000
},
"input_summary": {
"description": "A short summary of the user input.",
"type": "string",
"maxLength": 140
},
"design_type": {
"$ref": "#/components/schemas/DesignType"
}
},
"required": [
"locale",
"input",
"input_summary"
]
},
"GenerateDesignsResponse": {
"type": "object",
"properties": {
"designs": {
"description": "The list of Canva designs",
"type": "array",
"items": {
"$ref": "#/components/schemas/Design"
}
}
},
"required": [
"designs"
]
},
"Design": {
"type": "object",
"description": "Design schema",
"properties": {
"title": {
"description": "The Canva design title",
"type": "string"
},
"url": {
"description": "The URL to create the Canva design",
"type": "string"
},
"thumbnail": {
"$ref": "#/components/schemas/Thumbnail"
}
},
"required": [
"title",
"url",
"thumbnail"
]
},
"Thumbnail": {
"type": "object",
"description": "Canva design thumbnail",
"properties": {
"width": {
"type": "integer",
"description": "Canva design thumbnail width"
},
"height": {
"type": "integer",
"description": "Canva design thumbnail height"
},
"url": {
"type": "string",
"description": "Canva design thumbnail url"
}
},
"required": [
"width",
"height",
"url"
]
},
"DesignType": {
"type": "string",
"description": "The type of design to generate.",
"enum": [
"whiteboard",
"presentation",
"instagram_post",
"your_story",
"facebook_post",
"facebook_cover",
"flyer",
"pinterest_pin",
"card",
"poster",
"business_card",
"youtube_banner",
"twitter_post",
"invitation",
"document",
"postcard",
"youtube_thumbnail",
"report",
"proposal",
"photo_collage",
"infographic",
"desktop_wallpaper",
"phone_wallpaper",
"logo",
"resume"
]
}
}
}
}