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
  • plaintiffName: Plaintiff name (injured party)
  • defendantName: Defendant name (at-fault party)
  • attorneyName: Attorney name
  • side: Which party the attorney represents (plaintiff or defense)
  • 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("Plaintiff: %s\n", response.Case.PlaintiffName)
fmt.Printf("Defendant: %s\n", response.Case.DefendantName)
fmt.Printf("Attorney: %s\n", response.Case.AttorneyName)
fmt.Printf("Side: %s\n", response.Case.Side)
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