Get counterparty field options
Returns the enum option sets and country list needed to build a counterparty form.
GET/Run in dashboard
Requires an API key with the counterparties.read action.
Headers
-
x-project-id·string· min length 1 · exampleprj_exampleRequired for dashboard sessions. API keys use their assigned project.
Responses
-
200Counterparty field options-
data·object· requiredField option sets for building a counterparty form: closed enums plus the country list.
-
fields·object· required-
entityTypes·string[]· required · each one ofindividual,business -
countries·object[]· required-
code·string· required · exampleUSISO 3166-1 alpha-2 code.
-
name·string· required · exampleUnited StatesEnglish display name.
-
-
-
-
meta·object· requiredResponse metadata.
-
requestId·string· required · min length 1 · examplereq_exampleRequest identifier for tracing.
-
timestamp·string· required · formatdate-time· example2025-01-01T00:00:00.000ZISO 8601 timestamp.
-
-
-
401Unauthorized-
error·object· requiredStandard error payload.
-
code·string· requiredMachine-readable error code.
-
message·string· requiredHuman-readable error message.
-
details·objectOptional error details for debugging.
*·any
-
-
meta·object-
requestId·string· min length 1 · examplereq_exampleRequest identifier for tracing.
-
-
-
403Forbidden. Requires thecounterparties.readaction: an API key must hold it (a module'smanageorexecutealso covers itsread), and a signed-in member's organization role must include it. Without it the error is INSUFFICIENT_PERMISSIONS anderror.details.actionnames the action. Any other 403 names its own reason.Same fields as
401. -
500Internal Server ErrorSame fields as
401.
Example request
curl 'https://api.solana.com/v1/counterparties/metadata' \
-H "Authorization: Bearer $SDP_API_KEY"Example responses
{
"data": {
"fields": {
"entityTypes": [
"individual"
],
"countries": [
{
"code": "US",
"name": "United States"
}
]
}
},
"meta": {
"requestId": "req_example",
"timestamp": "2025-01-01T00:00:00.000Z"
}
}Error responses use the standard error shape.