openapi: 3.1.0 info: title: Google Books About Import API description: API for retrieving Bookshelf and Volume resources from Google Books version: 1.0.0 contact: name: Google Books API url: https://developers.google.com/books servers: - url: https://www.googleapis.com/books/v1 description: Google Books API v1 tags: - name: Import description: Operations related to Import paths: /gmail/v1/users/{userId}/messages/import: post: tags: - Import summary: Google Import Messages description: Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn't perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message. parameters: - name: Content-Type in: header schema: type: string example: application/json - name: Accept in: header schema: type: string example: application/json - name: userId in: path schema: type: string required: true description: '(Required) ' example: incididunt labore i requestBody: content: application/json: schema: $ref: '#/components/schemas/UsersMessagesImportPostRequest' responses: '200': description: OK headers: Content-Type: schema: type: string example: application/json content: application/json: schema: $ref: '#/components/schemas/UsersMessagesImportPostResponse' examples: UsersMessagesImportPostResponseExample: $ref: '#/components/examples/UsersMessagesImportPostResponseExample' x-api-evangelist-processing: ChooseTags: true x-microcks-operation: delay: 100 dispatcher: FALLBACK dispatcherRules: UsersMessagesImportPostResponseExample components: schemas: UsersMessagesImportPostRequest: description: UsersMessagesImportPostRequest schema type: object example: id: eu incididunt laborum irure threadId: magna Ut officia labelIds: - mollit amet dolore cupidatat - cupidatat deserunt mollit snippet: ut dolor historyId: nisi tempor do internalDate: cupidatat officia anim payload: partId: dolore velit incididunt est a mimeType: sit dolor mollit filename: ea commodo dolor nisi headers: - name: quis id velit laborum value: et voluptate dolor ea - name: sit nostrud value: deserunt fugiat ex body: attachmentId: id nulla consequat size: -93837667 data: ad in occaecat parts: - value: '' - value: '' sizeEstimate: 21128811 raw: do laboris UsersMessagesImportPostResponsePayloadBody: description: UsersMessagesImportPostResponsePayloadBody schema type: object properties: attachmentId: type: string size: type: integer data: type: string UsersMessagesImportPostResponsePayload: description: UsersMessagesImportPostResponsePayload schema type: object properties: partId: type: string mimeType: type: string filename: type: string headers: type: array items: type: object properties: name: type: string value: type: string body: $ref: '#/components/schemas/UsersMessagesImportPostResponsePayloadBody' parts: type: array items: type: object properties: value: type: string UsersMessagesImportPostResponse: description: UsersMessagesImportPostResponse schema type: object properties: id: type: string threadId: type: string labelIds: type: array items: type: string snippet: type: string historyId: type: string internalDate: type: string payload: $ref: '#/components/schemas/UsersMessagesImportPostResponsePayload' sizeEstimate: type: integer raw: type: string examples: UsersMessagesImportPostResponseExample: summary: Successful 200 response value: id: eu incididunt laborum irure threadId: magna Ut officia labelIds: - mollit amet dolore cupidatat - cupidatat deserunt mollit snippet: ut dolor historyId: nisi tempor do internalDate: cupidatat officia anim payload: partId: dolore velit incididunt est a mimeType: sit dolor mollit filename: ea commodo dolor nisi headers: - name: quis id velit laborum value: et voluptate dolor ea - name: sit nostrud value: deserunt fugiat ex body: attachmentId: id nulla consequat size: -93837667 data: ad in occaecat parts: - value: '' - value: '' sizeEstimate: 21128811 raw: do laboris securitySchemes: OAuth2: type: oauth2 description: OAuth 2.0 authentication for Google Books API flows: authorizationCode: authorizationUrl: https://accounts.google.com/o/oauth2/v2/auth tokenUrl: https://oauth2.googleapis.com/token scopes: https://www.googleapis.com/auth/books: Manage your Google Books library