Skip to main content

Get Case

Retrieves complete information about a case by its ID.

Parameters

ParameterTypeRequiredDescription
caseIdstringYesUnique identifier of the case

Response

Returns the case with:

  • id: Unique case identifier
  • name: Case name
  • clientName: Client name (if set)
  • organizationId: Organization ID (if associated)
  • status: Current case status
  • creatorId: ID of the creator (API key or user)
  • created: Creation timestamp
  • updated: Last modification timestamp

Examples

import (
"context"
"github.com/silentwitness/go-sdk"
)

response, err := silentwitness.Cases.Get(ctx, "case_abc123def456")
if err != nil {
log.Fatal(err)
}

fmt.Printf("Case: %s\n", response.Case.Name)
fmt.Printf("Client: %s\n", response.Case.ClientName)
fmt.Printf("Status: %s\n", response.Case.Status)

Errors

CodeDescription
NOT_FOUNDCase does not exist or not accessible
PERMISSION_DENIEDCase belongs to a different account
UNAUTHENTICATEDInvalid or missing API key