Skip to main content
POST
/
v1
/
job-activities
Create job activity (note)
curl --request POST \
  --url https://api.stardex.ai/v1/job-activities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "activity_type": "<string>",
  "activity_content": "<string>"
}
'
import requests

url = "https://api.stardex.ai/v1/job-activities"

payload = {
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activity_type": "<string>",
"activity_content": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
job_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
activity_type: '<string>',
activity_content: '<string>'
})
};

fetch('https://api.stardex.ai/v1/job-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.stardex.ai/v1/job-activities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'job_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'activity_type' => '<string>',
'activity_content' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

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

curl_close($curl);

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

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

func main() {

url := "https://api.stardex.ai/v1/job-activities"

payload := strings.NewReader("{\n \"job_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"activity_type\": \"<string>\",\n \"activity_content\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.stardex.ai/v1/job-activities")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"job_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"activity_type\": \"<string>\",\n \"activity_content\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.stardex.ai/v1/job-activities")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"job_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"activity_type\": \"<string>\",\n \"activity_content\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "success": true,
  "data": {
    "id": "901e2345-e67f-89ab-cdef-456789012345",
    "job_id": "123e4567-e89b-12d3-a456-426614174000",
    "activity_type": "meeting_note"
  }
}
{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}
{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}
{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}

Authorizations

Authorization
string
header
required

Authenticate with a Bearer token: API key, OAuth token, or session token.

Body

application/json
job_id
string<uuid>
required

Job UUID to attach the activity to. Get from POST /v1/jobs/search or GET /v1/jobs/{id}.

activity_type
string
required

Activity type key. Standard values: secondary_note (general note), call_note, meeting_note, email, linkedin_message, text_message. Free-form strings are accepted — there is no team-level type registry for jobs.

Minimum string length: 1
activity_content
string
required

Activity body. Plain text or HTML — HTML is auto-detected and stored alongside the plain-text mirror.

Response

Job activity created

success
enum<boolean>
required
Available options:
true
data
object
required