Skip to main content
Documentation

Projects API

Actions in the projects namespace of the Nexigon Hub API.

projects_Query

POST/api/v1/actions/invoke/projects_Query

Query the projects of the instance.

Request QueryProjectsAction

No fields.

Response QueryProjectsOutput

  • projectsrequired

    List of projects.

    array<QueryProjectsItem>
    QueryProjectsItem
    • projectId(from project_id)required

      ID of the project.

      ProjectIdstring
    • namerequired

      Name of the project.

      string

projects_GetDetails

POST/api/v1/actions/invoke/projects_GetDetails

Get information about a project.

Request GetProjectDetailsAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring

Response GetProjectDetailsOutput

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring
  • namerequired

    Name of the project.

    string
  • deviceCount(from device_count)required

    Number of devices in the project.

    integer

projects_SetName

POST/api/v1/actions/invoke/projects_SetName

Set the name of a project.

Request SetProjectNameAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring
  • namerequired

    New name of the project.

    string

Response Empty

No fields.

projects_Create

POST/api/v1/actions/invoke/projects_Create

Create a new project.

Request CreateProjectAction

  • organizationId(from organization_id)required

    Organization to create the project in.

    OrganizationIdstring
  • namerequired

    Name of the project.

    string

Response CreateProjectOutput

  • Created

    { "result": "Created", ...<payload fields> } β€” or "content" for non-object payloads

    CreateProjectSuccess
    • projectId(from project_id)required

      ID of the project.

      ProjectIdstring

projects_Delete

POST/api/v1/actions/invoke/projects_Delete

Delete a project.

Request DeleteProjectAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring

Response Empty

No fields.

projects_QueryDevices

POST/api/v1/actions/invoke/projects_QueryDevices

Query the devices of a project.

Request QueryProjectDevicesAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring

Response QueryProjectDevicesOutput

  • devicesrequired

    List of devices.

    array<QueryProjectDevicesItem>
    QueryProjectDevicesItem
    • deviceId(from device_id)required

      ID of the device.

      DeviceIdstring
    • nameoptional

      Name of the device.

      string
    • hostnameoptional

      Hostname reported by the device (from dev.nexigon.system.info).

      string
    • firstSeen(from first_seen)required

      Timestamp when the device was first seen.

      Timestampstring
    • statusrequired

      Combined device status (connection + health).

      DeviceStatus
      • Healthyβ†’ "healthy"

        Device is healthy and connected.

        Value: "healthy"

      • Warningβ†’ "warning"

        Device is connected but experiencing degraded performance.

        Value: "warning"

      • Errorβ†’ "error"

        Device is connected but in an error state.

        Value: "error"

      • Offlineβ†’ "offline"

        Device is not connected.

        Value: "offline"

    • isConnected(from is_connected)required

      Indicates whether the device is online.

      boolean
    • pendingCertificatesCount(from pending_certificates_count)required

      Pending device certificates.

      integer
    • lastConnectedAt(from last_connected_at)optional

      Timestamp when the device was last connected (current or most recent connection).

      Timestampstring
    • currentConnectionDurationSecs(from current_connection_duration_secs)optional

      Duration of the current connection in seconds (null if not connected).

      integer

projects_QueryDeploymentTokens

POST/api/v1/actions/invoke/projects_QueryDeploymentTokens

Query the deployment tokens of a project.

Request QueryProjectDeploymentTokensAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring

Response QueryProjectDeploymentTokensOutput

  • tokensrequired

    List of deployment tokens.

    array<QueryProjectDeploymentTokensItem>
    QueryProjectDeploymentTokensItem
    • tokenId(from token_id)required

      ID of the token.

      DeploymentTokenIdstring
    • createdAt(from created_at)required

      Creation date of the token.

      Timestampstring
    • nameoptional

      Name of the token.

      string
    • flagsrequired

      Flags.

      DeploymentTokenFlags
      • autoAccept(from auto_accept)optional

        Whether to automatically accept new devices.

        boolean

projects_QueryLinkedRepositories

POST/api/v1/actions/invoke/projects_QueryLinkedRepositories

Query repositories of a project.

Request QueryProjectRepositoriesAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring

Response QueryProjectRepositoriesOutput

  • repositoriesrequired

    List of repositories.

    array<QueryProjectRepositoriesItem>
    QueryProjectRepositoriesItem
    • repositoryId(from repository_id)required

      ID of the repository.

      RepositoryIdstring
    • publicName(from public_name)required

      Public name of the repository.

      string
    • displayName(from display_name)optional

      Display name of the repository (if any).

      string

projects_CreateDeploymentToken

POST/api/v1/actions/invoke/projects_CreateDeploymentToken

Create a deployment token.

Request CreateDeploymentTokenAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring
  • namerequired

    Name of the token.

    string
  • flagsoptional

    Flags.

    DeploymentTokenFlags
    • autoAccept(from auto_accept)optional

      Whether to automatically accept new devices.

      boolean

Response CreateDeploymentTokenOutput

  • tokenId(from token_id)required

    ID of the token.

    DeploymentTokenIdstring
  • tokenrequired

    Token.

    DeploymentTokenstring

projects_DeleteDeploymentToken

POST/api/v1/actions/invoke/projects_DeleteDeploymentToken

Delete a deployment token.

Request DeleteDeploymentTokenAction

  • tokenId(from token_id)required

    ID of the token.

    DeploymentTokenIdstring

Response Empty

No fields.

projects_SetDeploymentTokenFlags

POST/api/v1/actions/invoke/projects_SetDeploymentTokenFlags

Set the flags of a deployment token.

Request SetDeploymentTokenFlagsAction

  • tokenId(from token_id)required

    ID of the token.

    DeploymentTokenIdstring
  • flagsrequired

    Flags.

    DeploymentTokenFlags
    • autoAccept(from auto_accept)optional

      Whether to automatically accept new devices.

      boolean

Response Empty

No fields.

projects_QueryAuditLog

POST/api/v1/actions/invoke/projects_QueryAuditLog

Query the audit log of the project.

Request QueryAuditLogEventsAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring

Response QueryAuditLogEventsOutput

  • eventsrequired

    List of audit log events.

    array<AuditLogEvent>
    AuditLogEvent
    • eventId(from event_id)required

      ID of the audit log event.

      AuditLogEventIdstring
    • actorrequired

      Actor causing the event.

      Actor
      • Anonymous

        An anonymous, unauthenticated actor.

        { "actor": "Anonymous", ...<payload fields> } β€” or "content" for non-object payloads

        AnonymousActor

        No fields.

      • System

        The system itself, typically used for internal actions.

        { "actor": "System", ...<payload fields> } β€” or "content" for non-object payloads

        SystemActor

        No fields.

      • Device

        A device authenticated via a specific deployment token.

        { "actor": "Device", ...<payload fields> } β€” or "content" for non-object payloads

        DeviceActor
        • deviceId(from device_id)required

          ID of the device.

          DeviceIdstring
        • tokenId(from token_id)required

          ID of the deployment token used for authentication.

          DeploymentTokenIdstring
      • User

        A user typically authenticated via a user session.

        { "actor": "User", ...<payload fields> } β€” or "content" for non-object payloads

        UserActor
        • userId(from user_id)required

          ID of the user.

          UserIdstring
      • UserToken

        A user authenticated via a specific token.

        { "actor": "UserToken", ...<payload fields> } β€” or "content" for non-object payloads

        UserTokenActor
        • userId(from user_id)required

          ID of the user.

          UserIdstring
        • tokenId(from token_id)required

          ID of the user token used for authentication.

          UserTokenIdstring
      • ClusterNode

        A cluster node.

        { "actor": "ClusterNode", ...<payload fields> } β€” or "content" for non-object payloads

        ClusterNodeActor
        • nodeId(from node_id)required

          ID of the cluster node.

          ClusterNodeIdstring
      • OrganizationApiToken

        An organization API token.

        { "actor": "OrganizationApiToken", ...<payload fields> } β€” or "content" for non-object payloads

        OrganizationApiTokenActor
        • organizationId(from organization_id)required

          ID of the organization.

          OrganizationIdstring
        • tokenId(from token_id)required

          ID of the API token.

          OrganizationApiTokenIdstring
    • eventrequired

      Type of the event that was recorded.

      string
    • datarequired

      Additional audit data associated with the event.

      JsonValueany
    • createdAt(from created_at)required

      Timestamp indicating when the audit log event was recorded.

      Timestampstring
    • actionoptional

      Action the event has been caused by (if any).

      AuditLogEventAction
      • actionId(from action_id)required

        ID of the action.

        AuditLogActionIdstring
    • joboptional

      Job the event has been caused by (if any).

      AuditLogEventJob
      • jobId(from job_id)required

        ID of the job.

        JobIdstring

projects_LinkRepository

POST/api/v1/actions/invoke/projects_LinkRepository

Add a repository to the project.

Request AddProjectRepositoryAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring
  • repositoryId(from repository_id)required

    ID of the repository.

    RepositoryIdstring

Response Empty

No fields.

projects_UnlinkRepository

POST/api/v1/actions/invoke/projects_UnlinkRepository

Remove a repository from the project.

Request RemoveProjectRepositoryAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring
  • repositoryId(from repository_id)required

    ID of the repository.

    RepositoryIdstring

Response Empty

No fields.

projects_GetOtlpConfig

POST/api/v1/actions/invoke/projects_GetOtlpConfig

Get the OTLP event forwarding configuration for a project.

Request GetProjectOtlpConfigAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring

Response GetProjectOtlpConfigOutput

  • configrequired

    OTLP configuration.

    ProjectOtlpConfig
    • enabledrequired

      Whether OTLP forwarding is enabled.

      boolean
    • endpointoptional

      OTLP endpoint URL (e.g., https://otel-collector.example.com/v1/logs).

      string
    • headersrequired

      HTTP headers to include with OTLP requests (e.g., for authentication). Values are masked when read back.

      object<string, string>
      string
      string

projects_SetOtlpConfig

POST/api/v1/actions/invoke/projects_SetOtlpConfig

Set the OTLP event forwarding configuration for a project.

Request SetProjectOtlpConfigAction

  • projectId(from project_id)required

    ID of the project.

    ProjectIdstring
  • configrequired

    OTLP configuration.

    ProjectOtlpConfig
    • enabledrequired

      Whether OTLP forwarding is enabled.

      boolean
    • endpointoptional

      OTLP endpoint URL (e.g., https://otel-collector.example.com/v1/logs).

      string
    • headersrequired

      HTTP headers to include with OTLP requests (e.g., for authentication). Values are masked when read back.

      object<string, string>
      string
      string

Response Empty

No fields.