Browse the documentation

Tickets, SSH keys and account

Tickets

GET /tickets

Permissions: tickets:read

ParameterTypeRequiredValues
limitintegerno, default 201 to 100
cursorstringnooffset cursor
statusstringnoOPEN, IN_PROGRESS, WAITING_CUSTOMER, WAITING_SUPPORT, RESOLVED, CLOSED. Any other value answers 400 VALIDATION_ERROR:status

Sorted on the last update, not on the creation date. A key restricted to some services does not see the tickets about the other services; a ticket about no service stays visible.

FieldTypeNotes
ticketNumberstringthe identifier every ticket route takes. Shaped TKT-…, or TKTL-AAA-NNNNNN for the oldest tickets. Treat it as an opaque string
subjectstring
statusstringthe values above
prioritystringLOW, MEDIUM, HIGH, URGENT
categorystringGENERAL, TECHNICAL, BILLING, ACCOUNT
serviceCodestring or nullthe service concerned
createdAt, updatedAtintegerepoch milliseconds
lastMessageAtinteger or nullepoch milliseconds
messageCountinteger
unreadbooleansupport wrote something you have not read

GET /tickets/{ticketNumber}

Permissions: tickets:read

This call marks the ticket as read. An unknown number answers 404 TICKET_NOT_FOUND.

Carries the summary fields, without unread, messageCount or lastMessageAt, and adds:

FieldTypeNotes
descriptionstringthe first message, repeated
closedAtinteger or nullepoch milliseconds
messages[]arraythe conversation, in order
messages[] fieldTypeNotes
idinteger
senderstringCUSTOMER, SUPPORT, SYSTEM
contentstring
attachmentsintegerthe count of attachments. They download from the dashboard
createdAtintegerepoch milliseconds

POST /tickets

Permissions: tickets:write

FieldTypeRequiredValuesWhere it comes from
subjectstringyes5 to 200 characters-
messagestringyes10 to 5 000 characters-
categorystring or nullno, default GENERALGENERAL, TECHNICAL, BILLING, ACCOUNT-
prioritystring or nullno, default MEDIUMLOW, MEDIUM, HIGH, URGENT-
serviceCodestring or nullno-GET /services → code

A value outside its enum answers 400 VALIDATION_ERROR:category or 400 VALIDATION_ERROR:priority, never the default.

curl -X POST -H "Authorization: Bearer $FRESHPERF_KEY" \
     -H "Content-Type: application/json" \
     -d '{"subject":"Disk full","message":"The disk has been full since this morning.","category":"TECHNICAL","priority":"HIGH","serviceCode":"SRV-TJUAQ1-1951"}' \
     https://api.freshperf.fr/v1/tickets

Answers 201 with the whole ticket, messages[] included.

ErrorStatusWhen
VALIDATION_ERROR:subject400empty, or beyond 200 characters
VALIDATION_ERROR:message400empty, or beyond 10 000 characters
VALIDATION_ERROR:category, VALIDATION_ERROR:priority400value outside its enum
SUBJECT_TOO_SHORT400subject under 5 characters
DESCRIPTION_TOO_SHORT400message under 10 characters
DESCRIPTION_TOO_LONG400message beyond 5 000 characters
SERVICE_NOT_FOUND404serviceCode unknown, or outside the key's reach

The minimums (5 and 10 characters) and the 5,000 limit are counted on the text stripped of its leading and trailing whitespace; the 200-character cap on the subject and the 10,000 cap on the message, on the text as sent (400 VALIDATION_ERROR:subject or :message beyond).

POST /tickets/{ticketNumber}/messages

Permissions: tickets:write

FieldTypeRequiredValues
messagestringyes5 000 characters at most

Answers 201 with the message created. Replying to a closed or resolved ticket reopens it.

ErrorStatusWhen
VALIDATION_ERROR:message400empty, or beyond 10 000 characters
CONTENT_TOO_LONG400beyond 5 000 characters
TICKET_NOT_FOUND404unknown number

POST /tickets/{ticketNumber}/close

Permissions: tickets:write

No body. Answers 200 with the ticket summary, status at CLOSED. An unknown number answers 404 TICKET_NOT_FOUND.

SSH keys

The account's SSH keys are offered when ordering a VPS. A removed key stays installed on already-provisioned servers until they are reinstalled.

GET /ssh-keys and GET /ssh-keys/{id}

Permissions: account.ssh_keys:read

The list is whole, unpaginated. The single read of an unknown id answers 404 SSH_KEY_NOT_FOUND.

FieldTypeNotes
idintegerpass it back to delete
labelstring
keyTypestring or nulle.g. ssh-ed25519
fingerprintstring or nullSHA-256 in hex
commentstring or nullthe end-of-line comment
publicKeystring or nullthe full line. Present on the single read and on creation, null in the list
createdAtintegerepoch milliseconds
lastUsedAtinteger or nullepoch milliseconds

POST /ssh-keys

Permissions: account.ssh_keys:write

FieldTypeRequiredValues
labelstringyes128 characters at most
publicKeystringyesan OpenSSH public key line: ssh-ed25519, ssh-rsa, ssh-dss, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, sk-ecdsa-sha2-nistp256@openssh.com or sk-ssh-ed25519@openssh.com (hardware security keys)
curl -X POST -H "Authorization: Bearer $FRESHPERF_KEY" \
     -H "Content-Type: application/json" \
     -d '{"label":"laptop","publicKey":"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI... admin@laptop"}' \
     https://api.freshperf.fr/v1/ssh-keys

Answers 201 with the key, publicKey included.

ErrorStatusWhen
LABEL_REQUIRED, LABEL_TOO_LONG400label empty, or beyond 128 characters
PUBLIC_KEY_REQUIRED400publicKey absent or empty
SSH_KEY_FORMAT_INVALID400not a public key line
SSH_KEY_TYPE_UNSUPPORTED400algorithm outside the list above
SSH_KEY_BASE64_INVALID, SSH_KEY_SIZE_INVALID, SSH_KEY_TYPE_MISMATCH400the key body is unreadable, of an abnormal size, or does not match the type declared
DUPLICATE_KEY:<id>400the same key is already on the account. The suffix gives its id

DELETE /ssh-keys/{id}

Permissions: account.ssh_keys:write

{ "data": { "deleted": true } }

An unknown id answers 404 SSH_KEY_NOT_FOUND, a non-numeric id 400 INVALID_ID.

Account

GET /me

Permissions: account:read

The account and the calling key.

account fieldTypeNotes
idinteger
emailstring
firstName, lastNamestring or null
companybooleanthe account is registered as a company
companyNamestring or nullalways null when company is false
countrystring or nullISO 3166-1 alpha-2
createdAtintegerepoch milliseconds
emailVerified, twoFactorEnabledboolean
key fieldTypeNotes
idinteger
labelstring
keyPrefixstringfpk_ + 8 characters
scopesarray of stringthe permissions it carries, under their current names; for a key on a shared account, the ones the shared access lets it use
legacyScopesarray of stringformer permission names the key still carries (e.g. services.firewall:write), each standing for the current permissions listed in scopes. Empty once the key is saved again from the dashboard
allServicesboolean
serviceCodesarray of stringempty when allServices is true
siteRestrictionsarray of {serviceCode, siteIds} objectsthe web hosting services the key reaches on some sites only; empty when no site is restricted. A service missing from the list is reached whole
ipAllowlistarray of stringempty when any address is accepted
expiresAtinteger or nullepoch milliseconds
spendingCapCentsinteger or nullnull when there is no cap
spendingRemainingCentsinteger or nullwhat is left in the 30-day window
delegatedbooleantrue for a key acting on an account shared with its holder
actsForAccountstring or nullthe display name of the account a delegated key acts on; null otherwise. Never an id

GET /me/key

No permission required. Any valid key may ask what it is.

Returns the key block alone. Useful at start-up, to check a key still carries what your integration expects.

GET /account/notifications

Permissions: account.notifications:read

ParameterTypeRequiredValues
pageintegerno, default 11 or more. 0 answers 400 VALIDATION_ERROR:page
limitintegerno, default 201 to 50
unreadOnlystringnotrue to list unread only. Any other value means false

The envelope is not the one other lists use: no pagination block.

{ "data": {
  "total": 27,
  "unread": 4,
  "items": [
    { "id": 167, "type": "api_key_created", "kind": "security", "read": false,
      "link": "/dashboard/api-keys", "createdAt": 1787906983422,
      "title": { "fr-fr": "Clé d'API créée", "en-us": "API key created" },
      "message": { "en-us": "The key \"backup-cron\" was created on your account." } }
  ]
} }
FieldTypeNotes
totalintegerthe total for the filter asked: with unreadOnly=true it is the unread count
unreadintegeralways the unread count
items[].title, items[].messageobject locale → text, or null
items[].linkstring or nulla path in the dashboard

GET /account/access

Permissions: account.access:read

Who has delegated access to the account. Read-only: invitations are managed in the dashboard.

FieldTypeNotes
idinteger
statusstringPENDING, ACCEPTED, DECLINED, EXPIRED
invitedEmailstringthe address invited
granteeNamestring or nullset once the invitation is accepted
accountPermissionsarray of stringACCOUNT_TICKETS_VIEW, ACCOUNT_TICKETS_MANAGE
services[]arrayserviceCode plus permissions. A key restricted to some services only sees those
services[].permissionsarray of stringSERVICE_POWER, SERVICE_CONSOLE, SERVICE_FILES, SERVICE_BACKUPS, SERVICE_DATABASES, SERVICE_ALLOCATIONS, SERVICE_SCHEDULES, SERVICE_STARTUP, SERVICE_VERSIONS, SERVICE_CONTENT, SERVICE_SUBDOMAINS, SERVICE_REINSTALL, SERVICE_FIREWALL, SERVICE_RDNS, SERVICE_SFTP, SERVICE_PLAYERS, SERVICE_GAME_SETTINGS, SERVICE_SITES
createdAtintegerepoch milliseconds
acceptedAtinteger or nullepoch milliseconds

Revoked invitations are not listed.