Get Company
client.V1.PrivateMarkets.GetCompanyByID(ctx, companyID, query) (*V1PrivateMarketGetCompanyByIDResponse, error)
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 main
import (
"context"
"fmt"
"github.com/clear-street/clear-street-go"
"github.com/clear-street/clear-street-go/option"
)
func main() {
client := clearstreet.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.V1.PrivateMarkets.GetCompanyByID(
context.TODO(),
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
clearstreet.V1PrivateMarketGetCompanyByIDParams{
AccountID: 0,
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
{
"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"
}
}