Api/v2/person:test-email endpoint gives 404 not found

I’m trying to send a test email using the REST API endpoint mentioned in the title. However, for some reason it just gives 404 not found, even though some other endpoints work. The examples below illustrate this. The endpoint is mentioned in the docs at https://ubuntu.com/landscape/docs/reference/api/rest-api-endpoints/person/

curl --http2 -X GET -I https://landscape.mydomain.tld/api/v2/person -H “Content-Type: application/json” -H “Authorization: Bearer $JWT”
HTTP/2 200
server: TwistedWeb/25.5.0
date: Thu, 08 Oct 2026 08:34:55 GMT
access-control-allow-origin: http://localhost:8080
access-control-allow-headers: Content-Type, Authorization
content-length: 339
content-type: application/json
vary: Accept-Encoding,User-Agent

curl --http2 -X POST https://landscape.mydomain.tld/api/v2/person:test-email -H “Content-Type: application/json” -H “Authorization: Bearer $JWT”
{“error”: “NotFoundError”, “message”: “Not found”}

The corresponding log entries in /var/log/landscape-server/api.log on the landscape server are:
Oct 8 08:34:55 api-1 INFO "127.0.0.1" - - [08/Oct/2026:08:34:55 +0000] "GET /api/v2/person HTTP/1.1" 200 339 "-" "curl/8.12.1"
Oct 8 08:35:21 api-1 INFO "127.0.0.1" - - [08/Oct/2026:08:35:21 +0000] "POST /api/v2/person:test-email HTTP/1.1" 404 50 "-" "curl/8.12.1"

And in /var/log/apache2/landscape_access.log
9.9.9.9 - - [08/Oct/2026:08:34:55 +0000] “GET /api/v2/person HTTP/2.0” 200 497 “-” “curl/8.12.1”
9.9.9.9 - - [08/Oct/2026:08:35:21 +0000] “POST /api/v2/person:test-email HTTP/2.0” 404 196 “-” “curl/8.12.1”

EDIT: I maybe should have specified that it’s Landscape 26.04 running on Ubuntu 26.04.

1 Like

Hello @lkjfds , thanks for sharing your server version. That explains it: the person:test-email endpoint was added in Landscape 26.10, so it isn’t available on 26.04 LTS, which is why you’re getting the 404. Sorry for the confusion. Our API docs don’t currently say which version introduced it, and we’ll fix that.

Once you’re on 26.10 or later, you’ll be able to send test emails with that endpoint.