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

  • projects required

    List of projects.

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

      ID of the project.

      ProjectId string
    • name required

      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.

    ProjectId string

Response GetProjectDetailsOutput

  • projectId (from project_id) required

    ID of the project.

    ProjectId string
  • name required

    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.

    ProjectId string
  • name required

    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.

    OrganizationId string
  • name required

    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.

      ProjectId string

projects_Delete

POST /api/v1/actions/invoke/projects_Delete

Delete a project.

Request DeleteProjectAction

  • projectId (from project_id) required

    ID of the project.

    ProjectId string

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.

    ProjectId string

Response QueryProjectDevicesOutput

  • devices required

    List of devices.

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

      ID of the device.

      DeviceId string
    • name optional

      Name of the device.

      string
    • hostname optional

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

      string
    • firstSeen (from first_seen) required

      Timestamp when the device was first seen.

      Timestamp string
    • status required

      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).

      Timestamp string
    • 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.

    ProjectId string

Response QueryProjectDeploymentTokensOutput

  • tokens required

    List of deployment tokens.

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

      ID of the token.

      DeploymentTokenId string
    • createdAt (from created_at) required

      Creation date of the token.

      Timestamp string
    • name optional

      Name of the token.

      string
    • flags required

      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.

    ProjectId string

Response QueryProjectRepositoriesOutput

  • repositories required

    List of repositories.

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

      ID of the repository.

      RepositoryId string
    • 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.

    ProjectId string
  • name required

    Name of the token.

    string
  • flags optional

    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.

    DeploymentTokenId string
  • token required

    Token.

    DeploymentToken string

projects_DeleteDeploymentToken

POST /api/v1/actions/invoke/projects_DeleteDeploymentToken

Delete a deployment token.

Request DeleteDeploymentTokenAction

  • tokenId (from token_id) required

    ID of the token.

    DeploymentTokenId string

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.

    DeploymentTokenId string
  • flags required

    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.

    ProjectId string

Response QueryAuditLogEventsOutput

  • events required

    List of audit log events.

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

      ID of the audit log event.

      AuditLogEventId string
    • actor required

      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.

          DeviceId string
        • tokenId (from token_id) required

          ID of the deployment token used for authentication.

          DeploymentTokenId string
      • 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.

          UserId string
      • 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.

          UserId string
        • tokenId (from token_id) required

          ID of the user token used for authentication.

          UserTokenId string
      • 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.

          ClusterNodeId string
      • 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.

          OrganizationId string
        • tokenId (from token_id) required

          ID of the API token.

          OrganizationApiTokenId string
    • event required

      Type of the event that was recorded.

      string
    • data required

      Additional audit data associated with the event.

      JsonValue any
    • createdAt (from created_at) required

      Timestamp indicating when the audit log event was recorded.

      Timestamp string
    • action optional

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

      AuditLogEventAction
      • actionId (from action_id) required

        ID of the action.

        AuditLogActionId string
    • job optional

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

      AuditLogEventJob
      • jobId (from job_id) required

        ID of the job.

        JobId string

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.

    ProjectId string
  • repositoryId (from repository_id) required

    ID of the repository.

    RepositoryId string

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.

    ProjectId string
  • repositoryId (from repository_id) required

    ID of the repository.

    RepositoryId string

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.

    ProjectId string

Response GetProjectOtlpConfigOutput

  • config required

    OTLP configuration.

    ProjectOtlpConfig
    • enabled required

      Whether OTLP forwarding is enabled.

      boolean
    • endpoint optional

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

      string
    • headers required

      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.

    ProjectId string
  • config required

    OTLP configuration.

    ProjectOtlpConfig
    • enabled required

      Whether OTLP forwarding is enabled.

      boolean
    • endpoint optional

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

      string
    • headers required

      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.