Get a company
GET
/api/tenant/{tenantId}/Companies/{organizationNumber}
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://api.nimles.com/directory/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Companies/example"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://api.nimles.com/directory/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Companies/example';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);}curl --request GET \ --url https://api.nimles.com/directory/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Companies/example \ --header 'Authorization: Bearer <token>'The tenant’s record of an organisation number, fetched from Bolagsverket and SCB and stored when the tenant has none yet.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organizationNumber
required
string
The number, with or without its hyphen (twelve digits are accepted too).
tenantId
required
string format: uuid
Your tenant id.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
fields
object
key
additional properties
string
data
object
id
string format: uuid
organizationNumber
required
string
name
required
string
legalForm
string
legalFormCode
string
address
object
street
string
coAddress
string
postalCode
string
city
string
country
string
businessDescription
string
sniCodes
Array<object>
object
code
string
text
string
registrationDate
string format: date
status
required
string
statusText
string
statusDate
string format: date
soleTrader
boolean
fSkatt
boolean
vatRegistered
boolean
employer
boolean
sizeClass
string
workplaces
integer format: int32
fetchedAt
required
object
bolagsverket
string format: date-time
scb
string format: date-time
Example generated
{ "data": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "organizationNumber": "example", "name": "example", "legalForm": "example", "legalFormCode": "example", "address": { "street": "example", "coAddress": "example", "postalCode": "example", "city": "example", "country": "example" }, "businessDescription": "example", "sniCodes": [ { "code": "example", "text": "example" } ], "registrationDate": "2026-04-15", "status": "example", "statusText": "example", "statusDate": "2026-04-15", "soleTrader": true, "fSkatt": true, "vatRegistered": true, "employer": true, "sizeClass": "example", "workplaces": 1, "fetchedAt": { "bolagsverket": "2026-04-15T12:00:00Z", "scb": "2026-04-15T12:00:00Z" } }}Unauthorized: no bearer token, or one that is expired or not for this API.
Forbidden: the caller holds no role that allows this action at this scope. The body is empty, or a problem whose detail names the action.
Media typeapplication/json
An RFC 9457 problem.
object
detail
string
instance
string
status
integer format: int32
title
string
type
string
key
additional properties
Example generated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}Not found: no such item in the tenant.
Media typeapplication/problem+json
An RFC 9457 problem.
object
detail
string
instance
string
status
integer format: int32
title
string
type
string
key
additional properties
Example generated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}