Skip to main content

datalayer-whoami

Query the authenticated user's profile from the Datalayer IAM service. Requires a Datalayer account and API key. Returns user handle, email, roles, and linked accounts.

Aller à l'installation

Informations de source

Dépôt
datalayer/skills
Dernière activité de la source
20 avril 2026 à 09:52
Langue détectée de SKILL.md
anglais
Étoiles
1
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Explorateur de fichiers
3 fichiers

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
datalayer-whoami
description
Query the authenticated user's profile from the Datalayer IAM service. Requires a Datalayer account and API key. Returns user handle, email, roles, and linked accounts.
license
BSD-3-Clause
version
1.0.0
tags
["datalayer","iam","identity","authentication"]
author
Datalayer
# Datalayer Whoami Skill Retrieve the authenticated user's profile from the Datalayer IAM API. An authenticated user on the Datalayer platform is required to use this skill. ## Required Environment Variables - `DATALAYER_API_KEY` — API key for Datalayer IAM authentication. - `DATALAYER_RUN_URL` — Base URL of the Datalayer platform (e.g. `https://prod1.datalayer.run`). ## Invocation Contract - Call `run_skill_script` with: - `skill_name`: `datalayer-whoami` - `script_name`: `whoami` - No positional `args` required. - Optional `kwargs`: `run_url`, `api_key` (override environment variables). ## Scripts API ### `script_name: whoami` Calls the Datalayer IAM `GET /api/iam/v1/whoami` endpoint and returns the user profile as JSON. - `args`: none required - optional `kwargs`: - `run_url` — override `DATALAYER_RUN_URL` - `api_key` — override `DATALAYER_API_KEY` **Output:** JSON object with user profile fields: ```json { "handle": "johndoe", "email": "john@example.com", "first_name": "John", "last_name": "Doe", "roles": ["user"], "uid": "...", "avatar_url": "https://..." } ```
Voir sur GitHub