background image

Account

The signed-in user's own account and permissions.

Check the API

GET /v1/ping

Simple health check endpoint that responds with "pong". Used to verify the API is running and responsive.

No token needed.

Responses

  • 200 Service is healthy and responsive. Returns "pong".

Request

curl -X GET 'https://api.stellards.io/v1/ping'

Get your permissions

GET /v1/user/permissions

Retrieves the authenticated user's permissions for a specific project. Returns the complete permission set including project-level, schema-level, and table-specific permissions. Project owners and system administrators receive full permissions automatically.

Parameters

projectId uuid query required

The GUID of the project to query permissions for. Format: GUID (e.g., "3fa85f64-5717-4562-b3fc-2c963f66afa6"). Query string parameter.

Responses

  • 200 Successfully retrieved user permissions. Response contains complete permission structure with project, schema, and table-level access rights.
  • 400 Bad request. Invalid project GUID format.
  • 401 Unauthorized. The user is not authenticated or lacks required User role.
  • 403 Forbidden. User does not have any role assigned for this project, or the project is inactive.
  • 500 Internal server error. An unexpected error occurred while retrieving permissions.

Request

curl -X GET 'https://api.stellards.io/v1/user/permissions?projectId=PROJECT_ID' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Response 200

{
  "isSuccess": true,
  "messages": []
}

Get your account

GET /v1/user

Retrieves the authenticated user's account information including username and email.

Responses

  • 200 Successfully retrieved user account information. Response contains username and email address.
  • 401 Unauthorized. The user is not authenticated or lacks required User role.
  • 500 Internal server error. An unexpected error occurred while retrieving user information.

Request

curl -X GET 'https://api.stellards.io/v1/user' \
  -H 'Authorization: Bearer ACCESS_TOKEN'

Response 200

{
  "isSuccess": true,
  "messages": []
}