Get Company
PrivateMarketGetCompanyByIdResponse v1().privateMarkets().getCompanyById(PrivateMarketGetCompanyByIdParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/v1/private-markets/companies/{company_id}
Fetch one published private-market company with its complete versioned
profile. Requires the account holder to have attested. Returns 404 when
the company does not exist or is not yet published.
Get Company
package com.clearstreet.api.example;
import com.clearstreet.api.client.ClearStreetClient;
import com.clearstreet.api.client.okhttp.ClearStreetOkHttpClient;
import com.clearstreet.api.models.v1.privatemarkets.PrivateMarketGetCompanyByIdParams;
import com.clearstreet.api.models.v1.privatemarkets.PrivateMarketGetCompanyByIdResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
ClearStreetClient client = ClearStreetOkHttpClient.builder()
.fromEnv()
.apiKey("My API Key")
.build();
PrivateMarketGetCompanyByIdParams params = PrivateMarketGetCompanyByIdParams.builder()
.companyId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.accountId(0L)
.build();
PrivateMarketGetCompanyByIdResponse response = client.v1().privateMarkets().getCompanyById(params);
}
}{
"data": {
"id": "b2b3b4b5-c2c3-d2d3-e2e3-e4e5e6e7e8e9",
"name": "Acme Robotics",
"profile": {
"overview": "Acme Robotics builds autonomous material-handling systems for manufacturers.",
"tagline": "Automating the factory floor."
},
"profile_schema_version": 1,
"short_description": "Industrial automation.",
"slug": "acme-robotics"
},
"error": null,
"metadata": {
"request_id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f"
}
}Returns Examples
{
"data": {
"id": "b2b3b4b5-c2c3-d2d3-e2e3-e4e5e6e7e8e9",
"name": "Acme Robotics",
"profile": {
"overview": "Acme Robotics builds autonomous material-handling systems for manufacturers.",
"tagline": "Automating the factory floor."
},
"profile_schema_version": 1,
"short_description": "Industrial automation.",
"slug": "acme-robotics"
},
"error": null,
"metadata": {
"request_id": "7c8d9e0f-1a2b-3c4d-5e6f-7a8b9c0d1e2f"
}
}