Skip to main content
GET
/
v1
/
activities
cURL
curl --request GET \
  --url https://api.useconquest.com/v1/activities \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.useconquest.com/v1/activities"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.useconquest.com/v1/activities', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.useconquest.com/v1/activities",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.useconquest.com/v1/activities"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.useconquest.com/v1/activities")
  .header("Authorization", "Bearer <token>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.useconquest.com/v1/activities")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "page": 1,
  "pageSize": 10,
  "totalActivities": 1235,
  "activities": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "externalId": "<string>",
      "title": "<string>",
      "message": "<string>",
      "replyTo": "<string>",
      "reactTo": "<string>",
      "inviteTo": "<string>",
      "source": "Api",
      "activityTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "memberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ]
}
{
  "code": "BAD_REQUEST",
  "error": "Invalid request"
}
{
  "code": "UNAUTHORIZED",
  "error": "Authentication failed"
}
{
  "code": "NOT_FOUND",
  "error": "Resource not found"
}

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

Page number

pageSize
integer
default:10

Number of activities per page

Required range: 10 <= x <= 100

Response

Successful response

page
number
Example:

1

pageSize
number
Example:

10

totalActivities
number
Example:

1235

activities
object[]