Skip to main content
GET
/
contexts
/
observed-contexts
cURL
curl --request GET \
  --url http://localhost:3000/contexts/observed-contexts \
  --header 'Authorization: Bearer <token>'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "data": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "env_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "hash": "<string>",
        "context_json": "<unknown>",
        "first_seen": "2023-11-07T05:31:56Z",
        "last_seen": "2023-11-07T05:31:56Z",
        "seen_count": 2,
        "evaluation_success": true,
        "variation_results": "<string>",
        "source": "<string>",
        "deleted_at": "2023-11-07T05:31:56Z"
      }
    ],
    "meta": {
      "total": 123,
      "page": 123,
      "pageCount": 123
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
integer
default:1
Required range: x >= 1
perPage
integer
default:20
Required range: 1 <= x <= 100
kind
string
success
boolean
from
string<date-time>
to
string<date-time>
Maximum string length: 64
env_id
string<uuid>

Response

Default Response

statusCode
number
message
string
default:OK
data
object