> ## Documentation Index
> Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# [Observability] Push a test metric to the stored endpoint

> Push one test metric to the destination already stored, and clear the connection's error state when it is accepted. Use it after fixing a token on the provider's side.



## OpenAPI

````yaml https://api.onetsolutions.net/schema post /v1/organizations/{organization_id}/projects/{project_id}/integrations/observability/{provider}/verify
openapi: 3.0.3
info:
  title: OnetSolutions API
  version: v1 (v1)
  description: >

    ## Overview


    The OnetSolutions API provides programmatic access to manage your cloud
    infrastructure, domains, and web hosting services.


    ## Authentication


    All API requests require authentication using one of the following methods:


    - **JWT Token**: Obtain a token via login endpoints and include it in the
    `Authorization: Bearer <token>` header

    - **API Key**: Generate an API key from your account settings and use it as
    `Authorization: Bearer sk-onetsolutions-...`


    ## Rate Limiting


    API requests are rate-limited to ensure fair usage:

    - **Anonymous**: 60 requests per minute, per client IP address

    - **Authenticated**: 5000 requests per hour, per user


    Some endpoints, such as login and sign-up, apply stricter limits of their
    own.

    A request over the limit gets a `429` response whose `Retry-After` header
    gives the wait in seconds.


    ## Pagination


    Most list endpoints return paginated results. Use the `page` and `page_size`
    query parameters

    (at most 100 results per page). The response carries `count`, `next`,
    `previous`, `page`, `page_size`,

    `total_pages` and the `results` themselves.


    ## Error Handling


    The API uses standard HTTP status codes:

    - `200` Success

    - `201` Created

    - `204` No Content

    - `400` Bad Request

    - `401` Unauthorized

    - `403` Forbidden

    - `404` Not Found

    - `409` Conflict

    - `429` Too Many Requests

    - `500` Internal Server Error

    - `503` Service Unavailable


    Error responses carry a JSON body with `detail`, a human-readable message,
    and `code`, a stable

    machine-readable error code. Some errors add `context` with structured
    details, and `error`

    repeats `detail` for older clients. A request whose fields fail validation
    gets a `400` whose body maps each

    invalid field to its list of messages. A few older endpoints still answer
    with `error` alone.
servers:
  - url: https://api.onetsolutions.net
    description: Production
security: []
tags:
  - name: Authentication
    description: >-
      Login, passwordless authentication, MFA, OAuth providers, and token
      management.
  - name: Organizations
    description: >-
      Organization management, members, roles, modules, audit logs, and
      notification settings.
  - name: Projects
    description: Project management, team members, and project-scoped resources.
  - name: Compute
    description: >-
      Cloud instances, volumes, snapshots, backups, VPCs, firewalls, SSH keys,
      uptime monitors, and instance tasks.
  - name: Billing
    description: >-
      Shopping cart, orders, invoices, payments, payment methods, gateways,
      promo codes, and balance management.
  - name: Domains
    description: >-
      Domain availability, registration, transfers, DNS zones, DNS records, and
      TLD information.
  - name: Web Hosting
    description: >-
      cPanel-based web hosting, emails, databases, subdomains, FTP accounts,
      addon domains, and SSL certificates.
paths:
  /v1/organizations/{organization_id}/projects/{project_id}/integrations/observability/{provider}/verify:
    post:
      tags:
        - Monitoring
      summary: '[Observability] Push a test metric to the stored endpoint'
      description: >-
        Push one test metric to the destination already stored, and clear the
        connection's error state when it is accepted. Use it after fixing a
        token on the provider's side.
      operationId: verify_observability_connection
      parameters:
        - in: path
          name: organization_id
          schema:
            type: string
            format: uuid
          required: true
        - in: path
          name: project_id
          schema:
            type: string
            format: uuid
          required: true
        - in: path
          name: provider
          schema:
            type: string
            enum:
              - betterstack
              - custom
              - datadog
              - grafana_cloud
          description: >-
            The destination: one per tool, each connected and stopped on its
            own.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObservabilityConnection'
          description: ''
        '400':
          description: >-
            The endpoint is not an HTTPS internet address (code:
            observability_endpoint_refused), or it refused the test metric
            (code: observability_verification_failed, with the provider's error
            class in `context.error_code`)
        '401':
          description: Authentication credentials were not provided or are invalid
        '403':
          description: >-
            You do not have permission to perform this action, and it is never
            allowed during an impersonation session (code: impersonation_active)
        '404':
          description: >-
            Organization or project not found (code: project_not_found), this
            destination does not exist (code: observability_unknown_provider),
            or this project does not export to it (code:
            observability_not_connected)
        '503':
          description: >-
            The observability export is not offered (code:
            observability_integration_disabled)
      security:
        - BearerAuth: []
components:
  schemas:
    ObservabilityConnection:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        provider:
          enum:
            - grafana_cloud
            - datadog
            - betterstack
            - custom
          type: string
          description: |-
            * `grafana_cloud` - Grafana Cloud
            * `datadog` - Datadog
            * `betterstack` - Better Stack
            * `custom` - OTLP endpoint
          x-spec-enum-id: f628d4641fced649
        endpoint_url:
          type: string
          format: uri
          readOnly: true
        auth_scheme:
          enum:
            - bearer
            - basic
            - header
          type: string
          description: |-
            * `bearer` - bearer
            * `basic` - basic
            * `header` - header
          x-spec-enum-id: 7ca64829994f82fc
          readOnly: true
        header_name:
          type: string
          readOnly: true
        status:
          enum:
            - active
            - needs_attention
          type: string
          description: |-
            * `active` - active
            * `needs_attention` - needs_attention
          x-spec-enum-id: f9fbe7b27a551e5c
        last_error_code:
          type: string
          readOnly: true
        last_error_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        last_pushed_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        exported_through:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        exported_point_count:
          type: integer
          readOnly: true
        connected_by:
          allOf:
            - $ref: '#/components/schemas/ObservabilityConnectedBy'
          nullable: true
        created:
          type: string
          format: date-time
          readOnly: true
        modified:
          type: string
          format: date-time
          readOnly: true
      required:
        - auth_scheme
        - connected_by
        - created
        - endpoint_url
        - exported_point_count
        - exported_through
        - header_name
        - id
        - last_error_at
        - last_error_code
        - last_pushed_at
        - modified
        - provider
        - status
    ObservabilityConnectedBy:
      type: object
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email
      required:
        - email
        - id
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: >-
        Use `Authorization: Bearer <token>` header. Token can be a JWT token or
        an API key (format: `sk-onetsolutions-...`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.