---
title: "Send one event from an older Sentry SDK"
url: https://xovris.ai/docs/api/operations/postapibyprojectidstoreindex/
---

# Send one event from an older Sentry SDK

`POST /api/{projectId}/store/`

Needs a token that can read and change. A token without change access is refused with `token_read_only` and the step to take.

## Parameters

- `projectId` (string, path, required)

## Request body

### `application/json`

- `event_id` (string)
- `timestamp` (string | number)
- `platform` (string)
- `level` (string)
- `release` (string)
- `environment` (string)
- `message` (string | Teeac3f1e6773)
- `logentry` (Ted0af770b699)
  - `formatted` (string)
  - `message` (string)
  - `params`
- `exception` (object)
  - `values` (T96220e71ee4a[])
- `user` (Tb427975f5ab8)
  - `id` (string)
  - `ip_address` (string)
  - `email` (string)
- `server_name` (string)
- `tags` (object)
- `breadcrumbs`
- `request` (T4aa3bb799d08)
  - `url` (string)
  - `method` (string)
  - `headers` (object)
- `fingerprint` (string[])
- `debug_meta` (object)
  - `images` (Taceb07eeee22[])
- `contexts` (object)
  - `trace` (T879dcdd43930)

Example:

```json
{
  "event_id": "string",
  "timestamp": "string",
  "platform": "string",
  "level": "string",
  "release": "string",
  "environment": "string",
  "message": "string",
  "logentry": {
    "formatted": "string",
    "message": "string",
    "params": null
  },
  "exception": {
    "values": [
      {
        "type": "string",
        "module": "string",
        "value": "string",
        "mechanism": {
          "type": "string",
          "handled": true
        },
        "stacktrace": {
          "frames": [
            {
              "filename": "string",
              "abs_path": "string",
              "module": "string",
              "function": "string",
              "lineno": 1,
              "colno": 1,
              "in_app": true,
              "package": "string",
              "symbol": "string",
              "instruction_addr": "string"
            }
          ]
        }
      }
    ]
  },
  "user": {
    "id": "string",
    "ip_address": "string",
    "email": "string"
  },
  "server_name": "string",
  "tags": {},
  "breadcrumbs": null,
  "request": {
    "url": "string",
    "method": "string",
    "headers": {}
  },
  "fingerprint": [
    "string"
  ],
  "debug_meta": {
    "images": [
      {
        "type": "string",
        "code_file": "string",
        "debug_id": "string",
        "uuid": "string"
      }
    ]
  },
  "contexts": {
    "trace": {
      "trace_id": "string",
      "span_id": "string"
    }
  }
}
```

## Answers

- `200`: Done. (application/json: T3024dca85519 | Td44148234ffd)
- `401`: Not signed in: the token is missing, expired or revoked. The answer says how to get a new one. (application/json: Problem)
- `403`: Signed in, but this token or role may not do this. The answer names the permission it needs. (application/json: Problem)
- `404`: Nothing with that id here, or it belongs to another workspace. Nothing was changed. (application/json: Problem)
- `default`: Any other refusal or failure. The answer says what happened and what to do next. (application/json: Problem)

## A call

The address is https://api.xovris.ai/api/{projectId}/store/ - put your own value in place of each part in braces.

```sh
curl --request POST \
  --url 'https://api.xovris.ai/api/{projectId}/store/' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{"event_id":"string","timestamp":"string","platform":"string","level":"string","release":"string","environment":"string","message":"string","logentry":{"formatted":"string","message":"string","params":null},"exception":{"values":[{"type":"string","module":"string","value":"string","mechanism":{"type":"string","handled":true},"stacktrace":{"frames":[{"filename":"string","abs_path":"string","module":"string","function":"string","lineno":1,"colno":1,"in_app":true,"package":"string","symbol":"string","instruction_addr":"string"}]}}]},"user":{"id":"string","ip_address":"string","email":"string"},"server_name":"string","tags":{},"breadcrumbs":null,"request":{"url":"string","method":"string","headers":{}},"fingerprint":["string"],"debug_meta":{"images":[{"type":"string","code_file":"string","debug_id":"string","uuid":"string"}]},"contexts":{"trace":{"trace_id":"string","span_id":"string"}}}'
```
