List pins
GET/pins
Returns a paginated list of pins for the authenticated company. Results are ordered by creation date (newest first).
List pins
curl https://api.getrotor.com/open-api/pins \
-H "x-api-key: $ROTOR_API_KEY"{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"email": "dev@stainless.com",
"name": "name",
"user_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"location": [
40.7128,
-74.006
],
"pin_type": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"color": "#FF0000",
"label": "High Priority"
}
}
],
"pagination": {
"has_more": true,
"limit": 50,
"page": 1,
"total": 142
},
"status": "success"
}{
"status": "error",
"message": "Authentication required. Provide x-api-key header.",
"error_code": "AUTHENTICATION_REQUIRED"
}{
"status": "error",
"message": "Forbidden: required scope 'leads:read' not granted for this API key",
"error_code": "INSUFFICIENT_SCOPE"
}{
"status": "error",
"message": "Daily API key request limit of 1000 exceeded",
"error_code": "RATE_LIMIT_EXCEEDED"
}{
"status": "error",
"message": "Internal server error"
}Returns Examples
{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"email": "dev@stainless.com",
"name": "name",
"user_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"location": [
40.7128,
-74.006
],
"pin_type": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"color": "#FF0000",
"label": "High Priority"
}
}
],
"pagination": {
"has_more": true,
"limit": 50,
"page": 1,
"total": 142
},
"status": "success"
}{
"status": "error",
"message": "Authentication required. Provide x-api-key header.",
"error_code": "AUTHENTICATION_REQUIRED"
}{
"status": "error",
"message": "Forbidden: required scope 'leads:read' not granted for this API key",
"error_code": "INSUFFICIENT_SCOPE"
}{
"status": "error",
"message": "Daily API key request limit of 1000 exceeded",
"error_code": "RATE_LIMIT_EXCEEDED"
}{
"status": "error",
"message": "Internal server error"
}