---
title: "Lists the current user's skill env-var/key/tool associations."
method: GET
path: "/agents/skill_association"
tags: ["Agents"]
---

# Lists the current user's skill env-var/key/tool associations.

`GET /agents/skill_association`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/agents/skill_association`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/agents/skill_association/get.ts> (a function with typed inputs; its response is checked against the schema)

For each skill, the env-var→agent-key bindings and the tools that receive the skill's env vars.

## Response `200`

Successful operation

- SkillAssociations[]
  - `skill_id` string, required
  - `keys` SkillKeyAssociation[]
    - `name` string, required: Env var name declared in the skill's envs.json.
    - `key_id` string, nullable: Associated agent key id, or null when unset.
    - `key_name` string, nullable
    - `owner_email` string, nullable
    - `requirement_type` string
  - `tools` string[]

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden
- `500`: Internal server error
- `default`: Unexpected error

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
