AlertsList alerts for a Legislate contractget

List alerts for a Legislate contract

Lists alerts scheduled for a contract, ordered by fires_at ascending. Legislate remains the validated-data archive where Vault documents can be published.

curl -X GET "https://api.textmine.com/v3/legislate/contracts/123/alerts" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)"
[
  {
    "id": 222,
    "contract_id": 67890,
    "kind": "before_termination",
    "name": "John Doe",
    "params": {},
    "recipients": [
      {
        "user_id": 123,
        "email": "user@example.com"
      }
    ],
    "channel": "email",
    "status": "scheduled",
    "fires_at": "2024-12-25T10:00:00Z",
    "fired_at": "2024-12-25T10:00:00Z",
    "error": "example_string",
    "created_at": "2024-12-25T10:00:00Z",
    "created_by_id": 123
  }
]
GET
/v3/legislate/contracts/{contractId}/alerts
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (`tm_<key>`)
Bearer Tokenstring
Required

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.
path
contractIdinteger
Required

Legislate contract ID.

Format: int64
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (tm_<key>). Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Path Parameters

contractIdinteger
Required

Legislate contract ID.

Responses

idinteger
contract_idinteger
kindstring
namestring
paramsobject
recipientsarray
channelstring
statusstring
fires_atstring
fired_atstring
errorstring
created_atstring
created_by_idinteger