Nylas Drafts API

The Drafts API from Nylas — 1 operation(s) for drafts.

OpenAPI Specification

nylas-drafts-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Nylas API (v3) Admin Drafts API
  description: 'Nylas provides unified APIs for email, calendar, contacts, and

    scheduling across many underlying providers (Google, Microsoft, IMAP,

    etc.). Resources are scoped to a grant that represents an end-user

    connection. Endpoint scaffold below is derived from the public v3

    developer documentation at https://developer.nylas.com/docs/.

    '
  version: '3.0'
  contact:
    name: Nylas Developers
    url: https://developer.nylas.com
servers:
- url: https://api.us.nylas.com
  description: United States region
- url: https://api.eu.nylas.com
  description: European Union region
security:
- BearerAuth: []
tags:
- name: Drafts
paths:
  /v3/grants/{grant_id}/drafts:
    parameters:
    - in: path
      name: grant_id
      required: true
      schema:
        type: string
    get:
      tags:
      - Drafts
      summary: List drafts
      responses:
        '200':
          description: A list of drafts.
    post:
      tags:
      - Drafts
      summary: Create a draft
      responses:
        '200':
          description: The created draft.
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Server-side requests use an API key issued in the Nylas dashboard

        and presented as a Bearer token. User-level requests use an

        access token obtained via the OAuth 2.0 flow.

        '