### POST https://api.logsninja.com/v1/device/authorize Source: https://logsninja.com/en/docs Starts the device authorization flow to obtain an API token. ```APIDOC ## POST https://api.logsninja.com/v1/device/authorize ### Description Starts the device authorization flow. No authentication required. ### Method POST ### Endpoint https://api.logsninja.com/v1/device/authorize ### Response #### Success Response (200) - **device_code** (string) - Code used for polling. - **user_code** (string) - Short code to show the user. - **verification_uri** (string) - URL to open in a browser. - **verification_uri_complete** (string) - Direct URL with user_code. - **expires_in** (integer) - Expiration time in seconds. - **interval** (integer) - Polling interval in seconds. ``` -------------------------------- ### Create or update metric API requests Source: https://logsninja.com/en/docs Implementation examples for the PUT metrics endpoint using cURL, JavaScript, and Python. ```bash curl -X PUT https://api.logsninja.com/v1/metrics \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "project": "YOUR_PROJECT_ID", "id": "mrr", "title": "MRR", "value": 4900, "value_type": "currency", "currency": "EUR" }' ``` ```javascript await fetch('https://api.logsninja.com/v1/metrics', { method: 'PUT', headers: { 'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ project: 'YOUR_PROJECT_ID', id: 'mrr', title: 'MRR', value: 4900, value_type: 'currency', currency: 'EUR', }), }); ``` ```python import requests requests.put( 'https://api.logsninja.com/v1/metrics', headers={ 'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'application/json', }, json={ 'project': 'YOUR_PROJECT_ID', 'id': 'mrr', 'title': 'MRR', 'value': 4900, 'value_type': 'currency', 'currency': 'EUR', }, ) ``` -------------------------------- ### Metric creation payload examples Source: https://logsninja.com/en/docs JSON payloads for creating a currency metric and an atomic numeric increment. ```json { "project": "YOUR_PROJECT_ID", "id": "mrr", "title": "MRR", "emoji": "💰", "value": 4900, "value_type": "currency", "currency": "EUR" } ``` ```json { "project": "YOUR_PROJECT_ID", "id": "active-users", "title": "Active users", "value": { "diff": 1 }, "value_type": "number" } ``` -------------------------------- ### Send Event via API Source: https://logsninja.com/en/docs Implementation examples for sending events using cURL, JavaScript fetch, and Python requests. ```curl curl -X POST https://api.logsninja.com/v1/events \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "project": "YOUR_PROJECT_ID", "stream": "payments", "title": "New subscription", "content": "user@example.com subscribed to Pro", "notify": true }' ``` ```javascript await fetch('https://api.logsninja.com/v1/events', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ project: 'YOUR_PROJECT_ID', stream: 'payments', title: 'New subscription', content: 'user@example.com subscribed to Pro', notify: true, }), }); ``` ```python import requests requests.post( 'https://api.logsninja.com/v1/events', headers={ 'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'application/json', }, json={ 'project': 'YOUR_PROJECT_ID', 'stream': 'payments', 'title': 'New subscription', 'content': 'user@example.com subscribed to Pro', 'notify': True, }, ) ``` -------------------------------- ### Metadata JSON structure Source: https://logsninja.com/en/docs Example of the JSON format required for event and user metadata fields. ```json { "plan": "pro", "amount": 49, "score": 4.8, "is-trial": false } ``` -------------------------------- ### GET /v1/org/charts Source: https://logsninja.com/en/docs Retrieve a list of charts for the organization. ```APIDOC ## GET /v1/org/charts ### Description Retrieves a list of charts associated with the organization. ### Method GET ### Endpoint https://api.logsninja.com/v1/org/charts ### Parameters #### Query Parameters - **project_id** (string) - Optional - Required unless the token is already scoped to a single project. ``` -------------------------------- ### GET https://api.logsninja.com/v1/org/projects Source: https://logsninja.com/en/docs Retrieves a paginated list of projects within the organization. ```APIDOC ## GET https://api.logsninja.com/v1/org/projects ### Description Returns projects in the organisation, paginated. ### Method GET ### Endpoint https://api.logsninja.com/v1/org/projects ### Parameters #### Query Parameters - **page** (integer) - Optional - Page number (default 1). - **limit** (integer) - Optional - Number of items per page (default 50, max 200). ### Response #### Success Response (200) - **page** (integer) - Current page number. - **limit** (integer) - Items per page. - **total** (integer) - Total count of projects. - **has_more** (boolean) - Indicates if there are more pages. ``` -------------------------------- ### GET https://api.logsninja.com/v1/org/widgets Source: https://logsninja.com/en/docs Retrieves a list of all widgets configured for the dashboard. ```APIDOC ## GET https://api.logsninja.com/v1/org/widgets ### Description Retrieves a list of all widgets configured for the dashboard. ### Method GET ### Endpoint https://api.logsninja.com/v1/org/widgets ### Parameters #### Query Parameters - **project_id** (string) - Optional - Required unless the token is already scoped to a single project. ``` -------------------------------- ### Create or update a user API request Source: https://logsninja.com/en/docs Examples of how to perform a PUT request to create or update a user using different programming environments. ```curl curl -X PUT https://api.logsninja.com/v1/users \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "project": "YOUR_PROJECT_ID", "id": "user_123", "country_code": "FR", "metadata": { "plan": "pro" } }' ``` ```javascript await fetch('https://api.logsninja.com/v1/users', { method: 'PUT', headers: { 'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ project: 'YOUR_PROJECT_ID', id: 'user_123', country_code: 'FR', metadata: { plan: 'pro' }, }), }); ``` ```python import requests requests.put( 'https://api.logsninja.com/v1/users', headers={ 'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'application/json', }, json={ 'project': 'YOUR_PROJECT_ID', 'id': 'user_123', 'country_code': 'FR', 'metadata': {'plan': 'pro'}, }, ) ``` -------------------------------- ### GET https://api.logsninja.com/v1/org/tokens Source: https://logsninja.com/en/docs Retrieves a paginated list of API tokens in the organization. ```APIDOC ## GET https://api.logsninja.com/v1/org/tokens ### Description Returns API tokens in the organisation, paginated. Token values are never returned after creation. ### Method GET ### Endpoint https://api.logsninja.com/v1/org/tokens ### Parameters #### Query Parameters - **page** (integer) - Optional - Page number (default 1). - **limit** (integer) - Optional - Number of items per page (default 50, max 200). ### Response #### Success Response (200) - **page** (integer) - Current page number. - **limit** (integer) - Items per page. - **total** (integer) - Total count of tokens. - **has_more** (boolean) - Indicates if there are more pages. ``` -------------------------------- ### Fetch API documentation Source: https://logsninja.com/en/docs Command to retrieve the full API reference in Markdown format. ```bash curl https://logsninja.com/en/docs -H "Accept: text/markdown" ``` -------------------------------- ### POST /v1/org/charts Source: https://logsninja.com/en/docs Create a new chart configuration. ```APIDOC ## POST /v1/org/charts ### Description Creates a new chart configuration. ### Method POST ### Endpoint https://api.logsninja.com/v1/org/charts ### Request Body - **project_id** (string) - Required - Required unless the token is scoped to a single project. - **name** (string) - Required - Chart name. - **type** (string) - Required - line, bar, pie, funnel. - **period** (string) - Required - 7d, 30d, 90d, duration, custom. - **granularity** (string) - Required - hour, day, week, month. - **aggregation** (string) - Required - count, count_distinct, sum, avg, min, max, median. - **event_source_type** (string) - Required - all, stream, title, metadata. ``` -------------------------------- ### POST https://api.logsninja.com/v1/org/projects Source: https://logsninja.com/en/docs Creates a new project in the organization. ```APIDOC ## POST https://api.logsninja.com/v1/org/projects ### Description Creates a new project. ### Method POST ### Endpoint https://api.logsninja.com/v1/org/projects ### Parameters #### Request Body - **name** (string) - Required - The project name. ``` -------------------------------- ### MCP Server Connection Source: https://logsninja.com/en/docs Instructions for connecting an MCP client to the LogsNinja MCP server. ```APIDOC ## MCP Server Connection ### Description Connect your MCP client to the LogsNinja MCP server to allow AI agents to interact with your organization's data. ### Endpoint `https://logsninja.com/mcp` ### Authentication - **Authorization**: Bearer YOUR_API_TOKEN ``` -------------------------------- ### Available MCP Tools Source: https://logsninja.com/en/docs List of tools available for AI agents to invoke via the MCP server. ```APIDOC ## MCP Tools ### Project Management - `list_projects`: List projects in the organization. - `create_project`: Create a new project. ### Chart Management - `list_charts`, `create_chart`, `update_chart`, `delete_chart`: Manage charts using dashboard editor rules. - `preview_chart_data`: Compute chart data without persistence. ### Widget Management - `list_widgets`, `create_widget`, `reorder_widgets`, `delete_widget`: Manage widgets using masonry layout rules. ### Data & Metadata - `get_data_inventory`: Retrieve stream names, event titles, and metadata keys. - `list_streams`, `list_metrics`: Retrieve defined streams and custom metrics. ### Event & User Management - `list_events`, `get_event`: Retrieve recent events or specific event details. - `list_users`, `get_user`: Retrieve recent users or specific user details. - `create_event`, `delete_event`, `create_or_update_user`, `delete_user`, `create_or_update_metric`, `delete_metric`: Manage test data entities. ### Utilities - `search_emojis`: Search for emojis by name or keyword. - `get_documentation`: Retrieve full API documentation in Markdown. ``` -------------------------------- ### POST https://api.logsninja.com/v1/org/tokens Source: https://logsninja.com/en/docs Creates a new API token. ```APIDOC ## POST https://api.logsninja.com/v1/org/tokens ### Description Creates a new API token. The token value is returned once and cannot be retrieved again. ### Method POST ### Endpoint https://api.logsninja.com/v1/org/tokens ### Parameters #### Request Body - **name** (string) - Required - The token name. - **project_id** (string) - Optional - Restricts the token to a single project. ``` -------------------------------- ### Configure HTTP Headers Source: https://logsninja.com/en/docs Required headers for authenticating and specifying the content type of the request. ```http Authorization: Bearer YOUR_API_TOKEN Content-Type: application/json ``` -------------------------------- ### POST /v1/events Source: https://logsninja.com/en/docs Creates a new event in the system. ```APIDOC ## POST /v1/events ### Description Creates a new event. ### Method POST ### Endpoint /v1/events ### Response #### Success Response (201) - **id** (string) - The unique identifier of the created event. - **image_count** (integer) - The number of images associated with the event. - **images_status** (string) - The status of the images. ``` -------------------------------- ### POST https://api.logsninja.com/v1/device/token Source: https://logsninja.com/en/docs Polls for the API token after device authorization. ```APIDOC ## POST https://api.logsninja.com/v1/device/token ### Description Polls for the token using the device_code. No authentication required. ### Method POST ### Endpoint https://api.logsninja.com/v1/device/token ### Parameters #### Request Body - **device_code** (string) - Required - The device_code returned by the authorize call. ### Response #### Success Response (200) - **status** (string) - Status of the request (pending, denied, expired, or approved). - **token** (string) - The API token (returned only once upon approval). ``` -------------------------------- ### POST https://api.logsninja.com/v1/events Source: https://logsninja.com/en/docs Sends a new event to a specified project stream. ```APIDOC ## POST https://api.logsninja.com/v1/events ### Description Sends a new event to a specified project stream. Requires an API token for authorization. ### Method POST ### Endpoint https://api.logsninja.com/v1/events ### Request Body - **project** (string) - Required - The ID of the project. - **stream** (string) - Required - The name of the event stream. - **title** (string) - Required - The title of the event. - **content** (string) - Required - The main content of the event. - **emoji** (string) - Optional - An emoji representing the event. - **metadata** (object) - Optional - Additional key-value pairs for the event. - **notify** (boolean) - Optional - Whether to trigger a notification. ### Request Example { "project": "YOUR_PROJECT_ID", "stream": "payments", "title": "New subscription", "content": "user@example.com subscribed to Pro", "emoji": "💳", "metadata": { "plan": "pro", "amount": 49 }, "notify": true } ``` -------------------------------- ### POST https://api.logsninja.com/v1/org/widgets Source: https://logsninja.com/en/docs Adds a new widget to the dashboard. ```APIDOC ## POST https://api.logsninja.com/v1/org/widgets ### Description Adds a new widget to the dashboard. ### Method POST ### Endpoint https://api.logsninja.com/v1/org/widgets ### Parameters #### Request Body - **project_id** (string) - Required - Required unless the token is scoped to a single project. - **type** (string) - Required - metric, chart, events_7d, world_map, top_countries, online_users. - **metric_id** (string) - Optional - Required when type is metric. - **chart_id** (string) - Optional - Required when type is chart. - **width** (integer) - Optional - 1 (1/3), 2 (1/2, default), or 3 (full row). ``` -------------------------------- ### Rate Limits and Quotas Source: https://logsninja.com/en/docs Information regarding API rate limits, monthly quotas, and response headers for tracking usage. ```APIDOC ## Rate Limits and Quotas ### Description API usage is subject to organization-wide rate limits and monthly event/image quotas. Exceeding these limits results in a 429 Too Many Requests response. ### Quota Response Headers Successful `POST /v1/events` requests include the following headers: - **X-Quota-Remaining** (integer) - Events remaining in the current calendar month. - **X-Image-Quota-Remaining** (integer) - Hosted images remaining in the current calendar month. - **X-Plan** (string) - The current plan of the organisation (free, starter, plus, enterprise). ``` -------------------------------- ### POST /v1/ping Source: https://logsninja.com/en/docs Checks the connectivity of the API. ```APIDOC ## POST /v1/ping ### Description Checks API connectivity. ### Method POST ### Endpoint /v1/ping ### Response #### Success Response (200) - **ok** (boolean) - Indicates the service is reachable. ``` -------------------------------- ### PUT https://api.logsninja.com/v1/metrics Source: https://logsninja.com/en/docs Creates or updates a metric tile. Calling with the same id replaces the value. For numeric types, you can also apply a delta instead of setting an absolute value. ```APIDOC ## PUT https://api.logsninja.com/v1/metrics ### Description Creates or updates a metric tile. Calling with the same `id` replaces the value. For numeric types, you can also apply a delta instead of setting an absolute value. ### Method PUT ### Endpoint https://api.logsninja.com/v1/metrics ### Parameters #### Request Body - **project** (string) - Required - The project ID. - **id** (string) - Required - Stable identifier for this metric (e.g. mrr, active-users). - **title** (string) - Required - Display label for the metric tile. - **value** (string|number|object) - Required - The metric value. For numeric types, pass `{"diff": N}` to add or subtract N atomically. Not available for value_type `text`. - **value_type** (string) - Required - One of: `number`, `text`, `currency`, `percent`. - **currency** (string) - Optional - ISO 4217 currency code (e.g. EUR, USD). Required when value_type is `currency`. - **emoji** (string) - Optional - Emoji shown on the metric tile. Accepted formats: emoji character, shortcode, or hex code. ### Request Example { "project": "YOUR_PROJECT_ID", "id": "mrr", "title": "MRR", "emoji": "💰", "value": 4900, "value_type": "currency", "currency": "EUR" } ``` -------------------------------- ### PUT /v1/metrics Source: https://logsninja.com/en/docs Updates or creates a metric record. ```APIDOC ## PUT /v1/metrics ### Description Updates or creates a metric. ### Method PUT ### Endpoint /v1/metrics ### Response #### Success Response (200) - **id** (string) - The unique identifier of the metric. ``` -------------------------------- ### POST https://api.logsninja.com/v1/org/widgets/reorder Source: https://logsninja.com/en/docs Reorders the entire dashboard layout. ```APIDOC ## POST https://api.logsninja.com/v1/org/widgets/reorder ### Description Reorders the entire dashboard by providing the full ordered list of widget IDs. ### Method POST ### Endpoint https://api.logsninja.com/v1/org/widgets/reorder ``` -------------------------------- ### Check Quota Response Headers Source: https://logsninja.com/en/docs Successful event submission responses include headers indicating remaining monthly event and image quotas. ```HTTP X-Quota-Remaining: 2497 X-Image-Quota-Remaining: 18320 X-Plan: starter ``` -------------------------------- ### Authentication Source: https://logsninja.com/en/docs All API requests must be authenticated using an API token provided in the Authorization header. ```APIDOC ## Authentication ### Description All requests must include an API token in the Authorization header to be processed by the LogsNinja API. ### Request Header - **Authorization** (string) - Required - "Bearer YOUR_API_TOKEN" ``` -------------------------------- ### PUT /v1/users Source: https://logsninja.com/en/docs Updates or creates a user record. ```APIDOC ## PUT /v1/users ### Description Updates or creates a user. ### Method PUT ### Endpoint /v1/users ### Response #### Success Response (200) - **id** (string) - The unique identifier of the user. ``` -------------------------------- ### Create or update a user JSON payload Source: https://logsninja.com/en/docs The structure of the JSON body required for the user creation or update endpoint. ```json { "project": "YOUR_PROJECT_ID", "id": "user_123", "country_code": "FR", "display_as": "user@example.com", "metadata": { "plan": "pro", "mrr": 49 } } ``` -------------------------------- ### PUT https://api.logsninja.com/v1/users Source: https://logsninja.com/en/docs Creates or updates an application user. If a user with the same ID exists, the record is replaced. ```APIDOC ## PUT https://api.logsninja.com/v1/users ### Description Creates or updates an app user. Calling with the same id replaces the record. ### Method PUT ### Endpoint https://api.logsninja.com/v1/users ### Parameters #### Request Body - **project** (string) - Required - The project ID. - **id** (string) - Required - Your own stable identifier for this user. - **country_code** (string) - Optional - ISO 3166-1 alpha-2 country code. - **display_as** (string) - Optional - Name displayed on the site and mobile app for this user. - **metadata** (object) - Optional - Key/value metadata. ### Request Example { "project": "YOUR_PROJECT_ID", "id": "user_123", "country_code": "FR", "display_as": "user@example.com", "metadata": { "plan": "pro", "mrr": 49 } } ``` -------------------------------- ### Signal user presence via API Source: https://logsninja.com/en/docs Records user online status without creating an event. Requires the user to exist prior to the request. ```http POST https://api.logsninja.com/v1/ping ``` ```json { "project": "YOUR_PROJECT_ID", "id": "user_123" } ``` -------------------------------- ### PATCH /v1/org/charts/{id} Source: https://logsninja.com/en/docs Update an existing chart configuration. ```APIDOC ## PATCH /v1/org/charts/{id} ### Description Updates specific fields of an existing chart configuration. Only the fields sent in the request are changed. ### Method PATCH ### Endpoint https://api.logsninja.com/v1/org/charts/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the chart. ``` -------------------------------- ### Authenticate API Requests Source: https://logsninja.com/en/docs Include the API token in the Authorization header for all authenticated requests. ```HTTP Authorization: Bearer YOUR_API_TOKEN ``` -------------------------------- ### Device Authorization Response Source: https://logsninja.com/en/docs The JSON response received after initiating the device authorization flow. ```json { "device_code": "a1b2c3...", "user_code": "WXYZ-1234", "verification_uri": "https://logsninja.com/en/my/tokens#devices", "verification_uri_complete": "https://logsninja.com/en/my/tokens?user_code=WXYZ-1234#devices", "expires_in": 600, "interval": 5 } ``` -------------------------------- ### POST https://api.logsninja.com/v1/ping Source: https://logsninja.com/en/docs Records that a user is currently online, without creating an event. ```APIDOC ## POST https://api.logsninja.com/v1/ping ### Description Records that a user is currently online, without creating an event. A user is considered online if they have sent a ping or had a linked event in the last 15 minutes. ### Method POST ### Endpoint https://api.logsninja.com/v1/ping ### Request Body - **project** (string) - Required - The project ID. - **id** (string) - Required - Your app user ID. ### Request Example { "project": "YOUR_PROJECT_ID", "id": "user_123" } ``` -------------------------------- ### PATCH https://api.logsninja.com/v1/org/widgets/{id} Source: https://logsninja.com/en/docs Updates the width or position of an existing widget. ```APIDOC ## PATCH https://api.logsninja.com/v1/org/widgets/{id} ### Description Updates the width or position of an existing widget. Setting a position moves the widget and shifts others accordingly. ### Method PATCH ### Endpoint https://api.logsninja.com/v1/org/widgets/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the widget. ``` -------------------------------- ### Define Request Body Source: https://logsninja.com/en/docs The JSON structure required for the event payload, including project identification and notification settings. ```json { "project": "YOUR_PROJECT_ID", "stream": "payments", "title": "New subscription", "content": "user@example.com subscribed to Pro", "emoji": "💳", "metadata": { "plan": "pro", "amount": 49 }, "notify": true } ``` -------------------------------- ### DELETE /v1/org/charts/{id} Source: https://logsninja.com/en/docs Delete a chart configuration. ```APIDOC ## DELETE /v1/org/charts/{id} ### Description Deletes a chart configuration by its ID. ### Method DELETE ### Endpoint https://api.logsninja.com/v1/org/charts/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the chart. ``` -------------------------------- ### DELETE https://api.logsninja.com/v1/org/widgets/{id} Source: https://logsninja.com/en/docs Removes a widget from the dashboard. ```APIDOC ## DELETE https://api.logsninja.com/v1/org/widgets/{id} ### Description Removes a widget from the dashboard. ### Method DELETE ### Endpoint https://api.logsninja.com/v1/org/widgets/{id} ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the widget. ``` -------------------------------- ### Delete a user via API Source: https://logsninja.com/en/docs Deletes an app user while retaining their historical events. ```http DELETE https://api.logsninja.com/v1/users/:id?project=YOUR_PROJECT_ID ``` -------------------------------- ### DELETE /v1/users/:id Source: https://logsninja.com/en/docs Deletes a specific user by their ID. ```APIDOC ## DELETE /v1/users/:id ### Description Deletes a user by ID. ### Method DELETE ### Endpoint /v1/users/:id ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the user to delete. ### Response #### Success Response (200) - **ok** (boolean) - Indicates if the deletion was successful. ``` -------------------------------- ### DELETE https://api.logsninja.com/v1/metrics/:id Source: https://logsninja.com/en/docs Deletes a specific metric tile from the dashboard. ```APIDOC ## DELETE https://api.logsninja.com/v1/metrics/:id ### Description Deletes a metric tile from the dashboard. ### Method DELETE ### Endpoint https://api.logsninja.com/v1/metrics/:id?project=YOUR_PROJECT_ID ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the metric to delete. #### Query Parameters - **project** (string) - Required - The project ID associated with the metric. ``` -------------------------------- ### DELETE https://api.logsninja.com/v1/users/:id Source: https://logsninja.com/en/docs Deletes an app user. Their events remain but are no longer linked to the user. ```APIDOC ## DELETE https://api.logsninja.com/v1/users/:id?project=YOUR_PROJECT_ID ### Description Deletes an app user. Their events remain but are no longer linked to the user. ### Method DELETE ### Endpoint https://api.logsninja.com/v1/users/:id?project=YOUR_PROJECT_ID ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the user to delete. ``` -------------------------------- ### DELETE https://api.logsninja.com/v1/events/:id Source: https://logsninja.com/en/docs Permanently deletes an event from the system. ```APIDOC ## DELETE https://api.logsninja.com/v1/events/:id?project=YOUR_PROJECT_ID ### Description Permanently deletes an event. ### Method DELETE ### Endpoint https://api.logsninja.com/v1/events/:id?project=YOUR_PROJECT_ID ### Parameters #### Path Parameters - **id** (string) - Required - The unique identifier of the event to delete. #### Query Parameters - **project** (string) - Required - The project ID. ``` -------------------------------- ### DELETE /v1/events/:id Source: https://logsninja.com/en/docs Deletes a specific event by its ID. ```APIDOC ## DELETE /v1/events/:id ### Description Deletes an event by ID. ### Method DELETE ### Endpoint /v1/events/:id ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the event to delete. ### Response #### Success Response (200) - **ok** (boolean) - Indicates if the deletion was successful. ``` -------------------------------- ### DELETE /v1/metrics/:id Source: https://logsninja.com/en/docs Deletes a specific metric by its ID. ```APIDOC ## DELETE /v1/metrics/:id ### Description Deletes a metric by ID. ### Method DELETE ### Endpoint /v1/metrics/:id ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the metric to delete. ### Response #### Success Response (200) - **ok** (boolean) - Indicates if the deletion was successful. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.