Get Cover Letter
curl --request GET \
--url https://api.mokaru.ai/v1/cover-letter/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mokaru.ai/v1/cover-letter/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mokaru.ai/v1/cover-letter/{id}', 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.mokaru.ai/v1/cover-letter/{id}",
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.mokaru.ai/v1/cover-letter/{id}"
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.mokaru.ai/v1/cover-letter/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mokaru.ai/v1/cover-letter/{id}")
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{
"data": {
"id": "<string>",
"cvId": "<string>",
"title": "<string>",
"content": "<string>",
"templateId": "<string>",
"isDefault": true,
"variables": {},
"showName": true,
"showEmail": true,
"showPhone": true,
"showAddress": true,
"headerAlignment": "<string>",
"fontFamily": "<string>",
"fontSize": 123,
"lineSpacing": 123,
"pdfUrl": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Cover Letters
Get Cover Letter
Get full content of one cover letter
GET
/
v1
/
cover-letter
/
{id}
Get Cover Letter
curl --request GET \
--url https://api.mokaru.ai/v1/cover-letter/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mokaru.ai/v1/cover-letter/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mokaru.ai/v1/cover-letter/{id}', 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.mokaru.ai/v1/cover-letter/{id}",
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.mokaru.ai/v1/cover-letter/{id}"
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.mokaru.ai/v1/cover-letter/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mokaru.ai/v1/cover-letter/{id}")
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{
"data": {
"id": "<string>",
"cvId": "<string>",
"title": "<string>",
"content": "<string>",
"templateId": "<string>",
"isDefault": true,
"variables": {},
"showName": true,
"showEmail": true,
"showPhone": true,
"showAddress": true,
"headerAlignment": "<string>",
"fontFamily": "<string>",
"fontSize": 123,
"lineSpacing": 123,
"pdfUrl": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Overview
Returns the full cover letter row: title, body content, template variables, header visibility settings, typography, and the linked resume id.Scope required:
cover-letter:read | Rate limit: 30 requests/minRequest
GET /v1/cover-letter/{id}
Path Parameters
string
required
Cover letter id
Example
curl "https://api.mokaru.ai/v1/cover-letter/clx_cl_abc" \
-H "Authorization: Bearer mk_your_key"
Response
object
Cover letter detail.
Show child attributes
Show child attributes
string
Cover letter ID.
string
Linked resume ID.
string
Title.
string
Body text.
string
Optional cover letter template id.
boolean
Marked as the user’s default cover letter.
object
Template-variable map, e.g.
{ company: "Acme", contactPerson: "Jane" }.boolean
Header: show name.
boolean
Header: show email.
boolean
Header: show phone.
boolean
Header: show address.
string
left | center | right.string
Font family.
number
Font size (pt).
number
Line spacing.
string
Cached PDF URL if generated.
string
ISO 8601.
string
ISO 8601.
Was this page helpful?
⌘I
