Skip to content
  • Auto
  • Light
  • Dark
Get Started

Retrieve

Get Attribute Value
client.attributes.retrieve(stringid, RequestOptionsoptions?): valueAttributeValueAttributeRetrieveResponse
get/api/v1/attributes/{id}

Get an attribute value by id.

Parameters
idstring

The id field.

Returns
AttributeRetrieveResponse

GetAttributeValueResponse is the response for getting an attribute value by id.

Hide ParametersShow Parameters
valueidstringattributeTypeIdstringcreatedAtstringdeletedAtstringupdatedAtstringvaluestringAttributeValue
optional

AttributeValue is the value of an attribute of a defined type.

Request example TypeScript
import ConductoroneSDK from 'conductorone-sdk';

const client = new ConductoroneSDK({
  apiKey: 'My API Key',
});

const attribute = await client.attributes.retrieve('id');

console.log(attribute.value);
200 Example
{
  "value": {
    "id": "id",
    "attributeTypeId": "attributeTypeId",
    "value": "value"
  }
}