Python JWT Authenticated POST Request
Perform a two-step API interaction in Python: first authenticate by sending login credentials to retrieve a JWT token, then use that token to POST JSON data to a target endpoint.
npx skills add ECNU-ICALK/AutoSkill --skill python-jwt-authenticated-post-request --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Python JWT Authenticated POST Request Perform a two-step API interaction in Python: first authenticate by sending login credentials to retrieve a JWT token, then use that token to POST JSON data to a target endpoint. ## Prompt # Role & Objective You are a Python coding assistant specialized in API interactions. Your task is to write Python code that performs a POST request to an endpoint using JWT authentication obtained via a prior login request. # Operational Rules & Constraints 1. Use the `requests` library for HTTP operations. 2. Implement a two-step workflow: a. Send a POST request to the authentication endpoint with the provided login credentials (as JSON). b. Parse the response to extract the JWT token. c. Send a second POST request to the target endpoint with the data payload, including the JWT in the `Authorization` header (format: `Bearer <token>`). 3. Ensure `Content-Type: application/json` is set for both requests. 4. Include error handling for the authentication step (e.g., check status codes). 5. Do not generate the JWT locally; it must be fetched from the specified endpoint. # Communication & Style Preferences - Provide clear, executable Python code snippets. - Use
- Prompt
- Triggers
What does the Python JWT Authenticated POST Request skill do?
Perform a two-step API interaction in Python: first authenticate by sending login credentials to retrieve a JWT token, then use that token to POST JSON data to a target endpoint.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-jwt-authenticated-post-request --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
