curl -H "X-API-Key: $PARTICLE_API_KEY" \
"https://api.particle.pro/v1/me"{
"api_key": {
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"key_prefix": "<string>",
"name": "<string>",
"created_by": {
"id": "<string>",
"name": "<string>"
},
"expires_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
},
"organization": {
"id": "<string>",
"name": "<string>",
"plan": "<string>",
"subscription_status": "<string>",
"plan_display_name": "<string>"
},
"project": {
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}
}{
"detail": "Property foo is required but is missing.",
"error_code": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"resolve": {
"message": "<string>",
"action": "<string>",
"endpoint": "<string>",
"method": "<string>",
"url": "<string>"
},
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Account
Identify your API key
Returns the organization, project, and API key a request authenticates as, with the organization’s plan. Free: call it to check that a key works and which project it belongs to. A missing, mistyped, revoked, or expired key returns 401 api_key_required. When the organization’s access is blocked, it returns the same 402 as every other endpoint, naming the billing state and how to resolve it.
GET
/
v1
/
me
curl -H "X-API-Key: $PARTICLE_API_KEY" \
"https://api.particle.pro/v1/me"{
"api_key": {
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"key_prefix": "<string>",
"name": "<string>",
"created_by": {
"id": "<string>",
"name": "<string>"
},
"expires_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
},
"organization": {
"id": "<string>",
"name": "<string>",
"plan": "<string>",
"subscription_status": "<string>",
"plan_display_name": "<string>"
},
"project": {
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}
}{
"detail": "Property foo is required but is missing.",
"error_code": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"resolve": {
"message": "<string>",
"action": "<string>",
"endpoint": "<string>",
"method": "<string>",
"url": "<string>"
},
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Prefer the terminal? This endpoint is also a command in the Particle CLI: pick Particle CLI in the request example’s language menu. Install the Particle CLI.
Authorizations
ApiKeyHeaderBearerAuth
Response
OK
Was this page helpful?