{
  "info": {
    "_postman_id": "58dfc0ef-d998-444d-a996-1f6b7c5bc29a",
    "name": "Spruce Health API \u2014 Scheduled Messages",
    "description": "Scheduled Messages operations of the Spruce Health API. Generated from the OpenAPI Spruce Health publishes for developer.sprucehealth.com.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "id": "e5e10b99-b156-43e3-a568-6c82ff1817ed",
      "name": "Scheduled Messages",
      "item": [
        {
          "id": "772614ad-827b-4684-b0cc-a5f85da9f6b7",
          "name": "List any messages scheduled in a conversation",
          "request": {
            "name": "List any messages scheduled in a conversation",
            "description": {
              "content": "This operation lists the messages that are scheduled in a conversation.",
              "type": "text/plain"
            },
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/conversations/{conversationId}/scheduledmessages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "conversations",
                "{conversationId}",
                "scheduledmessages"
              ],
              "query": [],
              "variable": [
                {
                  "key": "conversationId",
                  "value": "<conversationId>"
                }
              ]
            },
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{bearerToken}}"
              }
            ]
          },
          "response": []
        },
        {
          "id": "69e68392-c081-46e5-b234-616ba256cadc",
          "name": "Schedule a message to be sent in a conversation",
          "request": {
            "name": "Schedule a message to be sent in a conversation",
            "description": {
              "content": "This operation creates a scheduled message to be sent in a conversation at the designated time. If no author is specified, the message will be sent as the organization.",
              "type": "text/plain"
            },
            "method": "POST",
            "url": {
              "raw": "{{baseUrl}}/conversations/{conversationId}/scheduledmessages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "conversations",
                "{conversationId}",
                "scheduledmessages"
              ],
              "query": [],
              "variable": [
                {
                  "key": "conversationId",
                  "value": "<conversationId>"
                }
              ]
            },
            "header": [
              {
                "key": "s-idempotency-key",
                "value": "<string>",
                "description": "A unique value generated by the client used to recognize subsequent retries of the same request. Idempotency keys can be up to 255 characters long."
              },
              {
                "key": "Authorization",
                "value": "Bearer {{bearerToken}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "id": "396a8919-67cb-46da-b239-95dbfee0ec83",
          "name": "List any messages scheduled for the organization",
          "request": {
            "name": "List any messages scheduled for the organization",
            "description": {
              "content": "This operation lists the messages that are scheduled to be sent from the organization.",
              "type": "text/plain"
            },
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/scheduledmessages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "scheduledmessages"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "paginationToken",
                  "value": "<string>"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{bearerToken}}"
              }
            ]
          },
          "response": []
        },
        {
          "id": "1edbf020-ba7c-4871-9689-fd6b8e3b71be",
          "name": "Delete a scheduled message",
          "request": {
            "name": "Delete a scheduled message",
            "description": {
              "content": "This operation deletes a scheduled message specified by id.",
              "type": "text/plain"
            },
            "method": "DELETE",
            "url": {
              "raw": "{{baseUrl}}/scheduledmessages/{scheduledMessageId}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "scheduledmessages",
                "{scheduledMessageId}"
              ],
              "query": [],
              "variable": [
                {
                  "key": "scheduledMessageId",
                  "value": "<scheduledMessageId>"
                }
              ]
            },
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{bearerToken}}"
              }
            ]
          },
          "response": []
        }
      ]
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.sprucehealth.com/v1"
    }
  ]
}