Announcements

Get active announcements for current user (works for anonymous users)

get
Responses
200

Successful response

application/json
get
/announcements/active
GET /api/v2/announcements/active HTTP/1.1
Host: api.ethos.network
Accept: */*
[
  {
    "id": 1,
    "title": "text",
    "description": "text",
    "imageUrl": "text",
    "actionButtonLabel": "text",
    "actionButtonUrl": "text",
    "startDateTime": "text",
    "endDateTime": "text",
    "status": "ACTIVE",
    "createdAt": "text",
    "updatedAt": "text",
    "authorAvatarUrl": "text"
  }
]

Mark an announcement as viewed

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idnumberRequired
Responses
200

Successful response

application/json
post
/announcements/{id}/viewed
POST /api/v2/announcements/{id}/viewed HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "ok": true
}

Last updated