---
agentTools:
  projectIndex: https://pavlok.readme.io/llms.txt
---

# Create and send a stimulus

Create a stimulus and send to current user

Type must be in : \["zap", "beep", "vibe"]

Value must be in range 1-100 inclusive"

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Pavlok API v5",
    "version": "5.0.0"
  },
  "servers": [
    {
      "url": "https://api.pavlok.com",
      "description": "Prod server"
    }
  ],
  "paths": {
    "/api/v5/stimulus/send": {
      "post": {
        "tags": [
          "Stimulus"
        ],
        "summary": "Create and send a stimulus",
        "description": "Create a stimulus and send to current user",
        "operationId": "stimulus_create_api_v5_stimulus_send_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_stimulus_create_api_v5_stimulus_send_post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StimulusInResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "RWAPIKeyHeader": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Body_stimulus_create_api_v5_stimulus_send_post": {
        "title": "Body_stimulus_create_api_v5_stimulus_send_post",
        "required": [
          "stimulus"
        ],
        "type": "object",
        "properties": {
          "stimulus": {
            "$ref": "#/components/schemas/StimulusInCreate"
          }
        }
      },
      "HTTPValidationError": {
        "title": "HTTPValidationError",
        "type": "object",
        "properties": {
          "errors": {
            "title": "Errors",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "Stimulus": {
        "title": "Stimulus",
        "required": [
          "type",
          "value",
          "sentTo",
          "createdAt",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer",
            "default": 0
          },
          "type": {
            "title": "Type",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "integer"
          },
          "sentAt": {
            "title": "Sentat",
            "type": "string",
            "format": "date-time"
          },
          "sentBy": {
            "title": "Sentby",
            "type": "integer"
          },
          "sentTo": {
            "title": "Sentto",
            "type": "integer"
          },
          "createdAt": {
            "title": "Createdat",
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "title": "Updatedat",
            "type": "string",
            "format": "date-time"
          },
          "via": {
            "title": "Via",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "pushedAt": {
            "title": "Pushedat",
            "type": "string",
            "format": "date-time"
          },
          "failedAt": {
            "title": "Failedat",
            "type": "string",
            "format": "date-time"
          },
          "failureMessage": {
            "title": "Failuremessage",
            "type": "string"
          },
          "sentByApp": {
            "title": "Sentbyapp",
            "type": "integer"
          },
          "reason": {
            "title": "Reason",
            "type": "string"
          },
          "pattern": {
            "title": "Pattern",
            "type": "string"
          },
          "repeat": {
            "title": "Repeat",
            "type": "integer"
          },
          "deleted": {
            "title": "Deleted",
            "type": "boolean",
            "default": false
          },
          "userDate": {
            "title": "Userdate",
            "type": "string",
            "format": "date"
          },
          "recent": {
            "title": "Recent",
            "type": "boolean",
            "default": true
          },
          "meta": {
            "title": "Meta",
            "type": "string"
          }
        },
        "description": "Stimulus Model"
      },
      "StimulusInCreate": {
        "title": "StimulusInCreate",
        "required": [
          "stimulusType",
          "stimulusValue"
        ],
        "type": "object",
        "properties": {
          "stimulusType": {
            "title": "Stimulustype",
            "type": "string"
          },
          "stimulusValue": {
            "title": "Stimulusvalue",
            "type": "integer"
          },
          "reason": {
            "title": "Reason",
            "type": "string"
          }
        },
        "description": "StimuliInCreate schema"
      },
      "StimulusInResponse": {
        "title": "StimulusInResponse",
        "required": [
          "stimulus"
        ],
        "type": "object",
        "properties": {
          "stimulus": {
            "$ref": "#/components/schemas/Stimulus"
          }
        }
      },
      "ValidationError": {
        "title": "ValidationError",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "type": "object",
        "properties": {
          "loc": {
            "title": "Location",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            }
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "RWAPIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 22,
      "2": 222,
      "3": 193,
      "4": 223,
      "5": 202,
      "6": 7,
      "7": 26,
      "8": 169,
      "9": 253,
      "10": 19,
      "11": 43
    }
  }
}
```