{ "openapi": "3.0.0", "info": { "version": "1.0.0", "title": "Message Center API", "license": { "name": "MIT" } }, "servers": [ { "url": "https://{accountName}.{environment}.com.br", "description": "VTEX server url", "variables": { "accountName": { "default": "apiexamples", "description": "Your VTEX account name" }, "environment": { "enum": [ "vtexcommercestable" ], "default": "vtexcommercestable" } } } ], "paths": { "/api/mail-service/pvt/providers/{EmailProvider}/dkim": { "post": { "summary": "Create DKIM keys for sender that was setup in VTEX mail servers", "operationId": "createDKIM", "tags": [ "dkim" ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/200Authorized" }, "examples": { "emailNotFound": { }, "emailNotVerified": { }, "created": { } } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/401Unauthorized" }, "examples": { "unauthorized": { "type": "https://tools.ietf.org/html/rfc7235#section-3.1", "title": "Unauthorized", "status": 401, "traceId": "00-f8949e0e2a80ff4481b4375908349701-a6a7ecf8b50a2043-00" } } } } }, "default": { "description": "unexpected error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } } } } }, "security": [ { "appKey": [], "appToken": [] } ], "components": { "securitySchemes": { "appKey": { "type": "apiKey", "in": "header", "name": "X-VTEX-API-AppKey" }, "appToken": { "type": "apiKey", "in": "header", "name": "X-VTEX-API-AppToken" } }, "schemas": { "200Authorized": { "type": "object", "properties": { "status": { "type": "string", "enum": ["emailNotFound", "emailNotVerified", "created"], "required": true }, "dkimKeys": { "type": "array" } } }, "401Unauthorized": { "type": "object", "properties": { "type": { "type": "string", "enum": "https://tools.ietf.org/html/rfc7235#section-3.1", "required": true }, "title": { "type": "string", "enum": "Unauthorized", "required": true }, "status": { "type": "integer", "enum": [401], "required": true }, "traceId": { "type": "string", "required": true } } } } } }