> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.lucanto.eu/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.lucanto.eu/_mcp/server.

# Get a contact

GET https://app.lucanto.eu/api/v1/workspaces/{workspace_id}/contacts/{id}

Reference: https://developer.lucanto.eu/api-reference/api-reference/contacts/get-contact

## Authentication

- `Authorization` header (bearer token, required) — JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.
- `Authorization` header (bearer token, required) — Lucanto API key. Two prefixes: * `lct_pat_<random><checksum>` — personal access token (owner: User) * `lct_live_<random><checksum>` — workspace token, live data Issue keys at `/settings/api_keys` (personal) or `/:workspace_id/settings/api_keys` (workspace). Plaintext token is shown once and never again.

## Request

### Path parameters

- `workspace_id` (WorkspacesWorkspaceIdContactsIdGetParametersWorkspaceId, required) — Workspace ID: the workspace's numeric `id` or its `public_id` (`ws_01h455vb4pex5vsknk084sn02q`, the form the web app's URLs show). The bare UUID form of the `public_id` is accepted but deprecated.
- `id` (ResourceId, required) — Contact ID. Either the numeric `id` or the `public_id` (`cnt_…`).

## Response

### 200

OK

- `id` (long, required) — Contact ID (workspace-scoped). Not the legal-entity ID.
- `public_id` (string, required) — Stable public identifier of this record. Never changes once assigned. Its prefix names the entity or document family: `inv_` invoice, settlement invoice, collective invoice or tax document; `cn_` credit note or advance credit note; `dbn_` debit note; `pf_` proforma; `qt_` quote; `so_` sales order; `po_` purchase order; `dln_` delivery note; `rdn_` received delivery note; `rcp_` cash receipt; `doc_` internal income, rent income or recurring document. Other entities use `exp_` expense, `cnt_` contact, `prj_` project, `ba_` bank account or cash register, `txn_` transaction, `lon_` loan, `bst_` bank statement, `ws_` workspace, `edoc_` e-document (a document sent or received over a network, as its `edocument` block names it; an inbox entry is `inb_`). Accepted in place of the numeric `id` in this resource's path parameters and in request fields that reference it (`customer_id`, `bank_account_id`, …).
- `suspended` (boolean, required) — The workspace is over its plan's contact limit and this contact is suspended: it can be read and used, not edited. Reactivate it with `POST …/contacts/{id}/reactivate` once the plan has room.
- `created_at` (datetime, required)
- `updated_at` (datetime, required)
- `legal_registration_id` (string, optional, nullable) — Legal/company registration identifier (SK/CZ IČO). `_id` denotes *identifier*, not a foreign key; the value is an opaque string and may be alphanumeric outside SK/CZ (e.g. UK `SC123456`).
- `tax_id` (string, optional, nullable) — Tax registration identifier (SK/CZ DIČ). An identifier string, not a number.
- `vat_id` (string, optional, nullable) — VAT identifier (SK/CZ IČ DPH). Alphanumeric with a country prefix (e.g. `SK2020123456`, `ATU12345678`) — an identifier, not a number.
- `vat_payer_type` (enum, optional, nullable) — VAT registration status (standard | non_payer_vat | foreign); nullable.
  - Allowed values: `standard`, `non_payer_vat`, `foreign`
- `email` (string, optional, nullable)
- `phone_number` (string, optional, nullable)
- `website` (string, optional, nullable)
- `address` (AddressEmbed, optional, nullable)
- `postal_address` (AddressEmbed, optional, nullable)
- `legal_name` (string, optional, nullable) — The contact's registered legal name, including legal form (e.g. "ACME s.r.o."). This is the contact's name.
- `buyer_reference` (string, optional, nullable) — Buyer reference (EN 16931 BT-10) this customer wants on its invoices. A draft whose customer is set to this contact takes it unless the draft has a reference of its own.
- `nickname` (string, optional, nullable) — The contact's in-app name in this workspace (the web form's "Meno kontaktu pre účely aplikácie"). Not the legal name, and never printed on documents.
- `due_days` (integer, optional, nullable) — Default number of days until due for new documents to this customer.
- `rate` (string, optional, nullable) — The contact's man-day rate (the web form's "MD Sadzba"), a decimal string.
- `suspended_at` (datetime, optional, nullable) — When the contact was suspended; `null` while active.
- `einvoice_reachability` (ContactEinvoiceReachability, optional, nullable) — Whether this contact receives e-invoices over Peppol, as last checked. Read-only: it is the stored answer and never triggers a lookup. `null` while the feature is not available to the workspace (outside Slovakia, or not yet switched on), and for a contact whose invoice address is outside Slovakia, which is never looked up.

## Errors

### 401 Unauthorized Error

Missing or invalid authentication credentials.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description. In English unless the request sends `Accept-Language` naming a language Lucanto offers (`sk`, `cs`, `en`, `de`, `fr`, `ro`, `uk`): then validation messages and other localized sentences come in that language, and the response carries `Content-Language`. Some fixed sentences stay English. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 402 Payment Required Error

Workspace has no active subscription (`error: subscription_required`). Visit the upgrade URL to subscribe. On the document create endpoints also the plan's document gate (`error: plan_limit_reached`): branch on `code` (`feature_limit_exceeded` — the plan's count for `feature_key` is used up; `feature_not_available` — the plan lacks the document type) and show the localized `message`.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description. In English unless the request sends `Accept-Language` naming a language Lucanto offers (`sk`, `cs`, `en`, `de`, `fr`, `ro`, `uk`): then validation messages and other localized sentences come in that language, and the response carries `Content-Language`. Some fixed sentences stay English. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.
- `upgrade_url` (string, optional) — URL to the billing/plans page
- `code` (enum, optional) — The plan gate's code (`plan_limit_reached` only).
  - Allowed values: `feature_limit_exceeded`, `feature_not_available`
- `feature_key` (string, optional) — The plan feature that refused (`plan_limit_reached` only).
- `feature` (string, optional) — Legacy alias of `feature_key`.
- `plan` (string, optional) — The workspace's plan slug (`plan_limit_reached` only).

### 403 Forbidden Error

Authenticated, but the token's scope or the user's role does not permit this action. Both the token scope and the user's role must allow the action. Also returned when a workspace token is sent to an endpoint that acts for a user (`/user`, `/user/workspaces`, devices, notification preferences, diagnostics): a workspace token has no user behind it, so use a personal access token or a JWT there.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description. In English unless the request sends `Accept-Language` naming a language Lucanto offers (`sk`, `cs`, `en`, `de`, `fr`, `ro`, `uk`): then validation messages and other localized sentences come in that language, and the response carries `Content-Language`. Some fixed sentences stay English. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 404 Not Found Error

Resource does not exist, or exists but is not visible to the authenticated principal (cross-workspace isolation returns 404, not 403, to avoid leaking existence).

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description. In English unless the request sends `Accept-Language` naming a language Lucanto offers (`sk`, `cs`, `en`, `de`, `fr`, `ro`, `uk`): then validation messages and other localized sentences come in that language, and the response carries `Content-Language`. Some fixed sentences stay English. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 429 Too Many Requests Error

Rate limit exceeded. Retry after the window resets. The `error` code tells the limits apart: `too_many_requests` / `rate_limited` for the API request limits, `outbound_email_rate_limited` on the document send endpoints when a new workspace (under 14 days, or never paid) has reached its e-mail caps (20 recipients an hour, 50 a day) — retry after `retry_after_seconds` (also the `Retry-After` header), or ask support for a higher limit.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description. In English unless the request sends `Accept-Language` naming a language Lucanto offers (`sk`, `cs`, `en`, `de`, `fr`, `ro`, `uk`): then validation messages and other localized sentences come in that language, and the response carries `Content-Language`. Some fixed sentences stay English. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

## Types

### WorkspacesWorkspaceIdContactsIdGetParametersWorkspaceId

- long
- string
- string

### ResourceId

The record's numeric `id` or its `public_id` (`inv_01h455vb4pex5vsknk084sn02q`). The bare UUID form of the `public_id` is still accepted but deprecated.

- long
- string
- string

### AddressEmbed

- `id` (long, required)
- `street` (string, optional, nullable)
- `city` (string, optional, nullable)
- `postal_code` (string, optional, nullable)
- `country_code` (string, optional, nullable) — ISO 3166-1 alpha-2 country code, uppercase (e.g. "SK").

### ContactEinvoiceReachability

- `status` (enum, required) — `found` receives e-invoices (an answer younger than 7 days, or an e-invoice delivered to it in the last 90 days), `not_found` does not (an answer younger than 24 hours), `unknown` was not checked within those periods or the check failed, `no_tax_id` has no Slovak tax ID (DIČ, ten digits) to look up. The same rule as the contact list in the web app.
  - Allowed values: `found`, `not_found`, `unknown`, `no_tax_id`
- `peppol_id` (string, required, nullable) — The contact's Peppol participant ID when `found` (e.g. `0245:2020123456`).
- `checked_at` (datetime, required, nullable) — When the answer `status` reflects was obtained (the delivery, for a `found` from a delivered e-invoice); `null` when `unknown` or `no_tax_id`.
- `supports_invoice_response` (boolean, required, nullable) — Whether the contact's access point accepts Invoice Responses (accept/reject messages); `null` when not known.

## Examples

**Response**

```json
{
  "id": 1,
  "public_id": "inv_01h455vb4pex5vsknk084sn02q",
  "suspended": true,
  "created_at": "2024-01-15T09:30:00Z",
  "updated_at": "2024-01-15T09:30:00Z",
  "legal_registration_id": "string",
  "tax_id": "string",
  "vat_id": "string",
  "vat_payer_type": "standard",
  "email": "string",
  "phone_number": "string",
  "website": "string",
  "address": {
    "id": 1,
    "street": "string",
    "city": "string",
    "postal_code": "string",
    "country_code": "string"
  },
  "postal_address": {
    "id": 1,
    "street": "string",
    "city": "string",
    "postal_code": "string",
    "country_code": "string"
  },
  "legal_name": "ACME s.r.o.",
  "buyer_reference": "string",
  "nickname": "string",
  "due_days": 1,
  "rate": "450.0",
  "suspended_at": "2024-01-15T09:30:00Z",
  "einvoice_reachability": {
    "status": "found",
    "peppol_id": "0245:2020123456",
    "checked_at": "2024-01-15T09:30:00Z",
    "supports_invoice_response": true
  }
}
```

**SDK Code**

```python
import requests

url = "https://app.lucanto.eu/api/v1/workspaces/42/contacts/1"

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

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

print(response.json())
```

```javascript
const url = 'https://app.lucanto.eu/api/v1/workspaces/42/contacts/1';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

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

func main() {

	url := "https://app.lucanto.eu/api/v1/workspaces/42/contacts/1"

	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(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://app.lucanto.eu/api/v1/workspaces/42/contacts/1")

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
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://app.lucanto.eu/api/v1/workspaces/42/contacts/1")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.lucanto.eu/api/v1/workspaces/42/contacts/1', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://app.lucanto.eu/api/v1/workspaces/42/contacts/1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.lucanto.eu/api/v1/workspaces/42/contacts/1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```