Content

List content items

get
/contents/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

List of content

application/json
get
/contents/
GET /api/v1/contents/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": 1,
    "title": "text",
    "description": "text",
    "duration_seconds": 1,
    "tags": [
      "text"
    ]
  }
]

Get content details

get
/contents/{id}/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Responses
200

Content details

application/json
get
/contents/{id}/
GET /api/v1/contents/{id}/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 1,
  "title": "text",
  "description": "text",
  "duration_seconds": 1,
  "tags": [
    "text"
  ]
}

Mark content as favourite

post
/contents/{id}/favorite/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Responses
200

Marked as favourite

No content

post
/contents/{id}/favorite/
POST /api/v1/contents/{id}/favorite/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Trigger content download

post
/contents/{id}/download/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Responses
200

Download started

No content

post
/contents/{id}/download/
POST /api/v1/contents/{id}/download/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Generate transcript for content

post
/contents/{id}/transcript/generate/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Responses
post
/contents/{id}/transcript/generate/
POST /api/v1/contents/{id}/transcript/generate/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Get content transcript

get
/contents/{id}/transcript/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Responses
200

Transcript

application/json
get
/contents/{id}/transcript/
GET /api/v1/contents/{id}/transcript/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "transcript": "text"
}

Update user progress for content

patch
/contents/{id}/update_progress/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Body
last_positionintegerOptional

Seconds

is_completedbooleanOptional
Responses
200

Progress updated

No content

patch
/contents/{id}/update_progress/
PATCH /api/v1/contents/{id}/update_progress/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 39

{
  "last_position": 1,
  "is_completed": true
}

No content

Last updated