Breathecode staff api index

From breatheco-de/apiv2 · View interactive version

Breathecode staff api index is an AI agent skill from the GitHub repository breatheco-de/apiv2. Load first for academy-scoped BreatheCode API work (/academy/, Academy header, staff capabilities). Maps requests to domain skills. Do NOT use for pure learner self-service without staff context — use breathecode-student-api-index instead.

How to use this skill

Skill file

BreatheCode Staff API Index

This skill is the entry point for staff and academy-scoped BreatheCode API work. Its only job is to help you identify which domain skill(s) to load before taking any action. Do not attempt to call the API using only this skill — always load the relevant domain skill(s) first.

When to Use

Related index

If the session is learner-only (authenticated student using me / user/me flows, no staff capabilities), load CODE2 instead of this file.


Workflow

  1. Read the user's request.
  2. Identify the domain(s) from the table below.
  3. Load the corresponding skill(s) before proceeding.
  4. If the task spans multiple domains, load all relevant skills and check each one for cross-domain instructions before calling any endpoint.

Domain Map

| Domain | Covers | Skill to Load |

|---|---|---|

| admissions | Students, cohorts, syllabi, skills taught by a syllabus version, enrollments, cohort stages, micro/macro cohorts | bc-admissions-* |

| activity | User activity tracking, engagement stats, daily summaries, login streaks | bc-activity-* |

| assessment | Quizzes, tests, student quiz attempts, grading | bc-assessment-* |

| assignment | Student task deliveries, project submissions, revision requests; PROJECT teacher review (list → registry asset → PUT task; ignore = same PUT with revision_status=IGNORED, not a separate route) | bc-assignment-*, CODE4 |

| authenticate | Staff login, academy-scoped capabilities, integration token, staff-assisted reset; staff invites and member admin; academy GitHub org user sync | bc-authenticate-*, CODE1, CODE2, CODE3 |

| career | Job listings, job applications post-graduation, employer connections | bc-career-* |

| certificate | Certificate emission, specialties, certificate-syllabus associations | bc-certificate-* |

| events | Workshops, live classes, RSVPs, check-ins, during-event ops, post-event wrap-up | bc-events-*, CODE1, CODE2, CODE3 |

| feedback | NPS surveys, student satisfaction studies, feedback forms | bc-feedback-* |

| marketing | URL shortener, FormEntry create (public, app, staff, bulk CSV), FormEntry staff management, UTM tracking, academy-scoped marketing courses (list/create/clone under /v1/marketing/academy/course) | bc-marketing-*, CODE2, CODE3, CODE4 |

| media | Images, videos, documents used in LMS content, asset management | bc-media-* |

| mentorship | Mentors, services, Calendly booking, meet short links, session activity | bc-mentorship-*, CODE1, CODE2, CODE3 |

| monitoring | Platform monitoring endpoints, report retrieval APIs, monitoring webhooks, and operational status resources | bc-monitoring-* |

| notify | Email, SMS, WhatsApp messaging, notification templates, delivery status | bc-notify-* |

| payments | Billing plans, invoices, subscriptions, shop items, payment history | bc-payments-* |

| provisioning | Student VPS servers, Codespaces containers, provisioning requests | bc-provisioning-* |

| registry | Learning assets — lessons, exercises, projects, asset versioning; academy create/update including category and technologies; read-only asset skills synced from source files; global technology catalog and alias normalization | bc-registry-*, CODE1, CODE2 |

| talent development | Job families, job roles, career paths and stages, skill domains, global skills, competencies, stage-anchored skills (/v1/talent/) | bc-talentdevelopment-* |


Common Cross-Domain Workflows

Some user requests touch multiple domains. Load ALL listed skills before proceeding.

| User Request | Skills to Load |

|---|---|

| Create a cohort | bc-admissions-create-cohort + bc-certificate-manage-and-assign-specialties (syllabus must have an associated specialty) |

| Create and apply syllabus schedule templates to cohorts | bc-admissions-create-manage-syllabus-schedules + bc-admissions-create-cohort (cohorts must have schedule assigned before sync) |

| Create a macro cohort | bc-admissions-create-cohort (Path B — macro) + bc-certificate-manage-and-assign-specialties (each micro syllabus must have a linked specialty) |

| Configure or fetch micro syllabus with macro-specific overrides | bc-admissions-create-cohort (Path B, optional overrides step) + SYLLABUS.md — Macro cohort syllabus overrides (supports slug.vN and ordered N:slug.vN keys) |

| Enroll a student in a cohort | bc-admissions-enroll-student + bc-payments-* (student must have a valid plan) |

| Issue a certificate to a student | bc-certificate-* + bc-admissions-* (verify cohort completion status) |

| Create or activate a mentor for an academy | CODE0 + CODE1 + CODE2 (ProfileAcademy prerequisite) |

| Help a student or mentor book or join a mentorship | CODE0 + bc-authenticate-* (token); on join credit failure also bc-payments-* |

| Review mentorship meeting activity / session log | CODE0 + CODE1 |

| Send a notification | bc-notify-* + the domain that triggered the notification |

| Create a marketing lead (form, app, staff, or CSV bulk) | CODE0 |

| Bulk import leads from CSV | CODE0 (PUT /v1/marketing/academy/upload) |

| Search, update, delete, or re-process existing form entries | CODE0 |

| Lead counts or breakdowns (by status, course, UTM, date) | CODE0 (Lead report section, read_lead + Academy header) |

| Understand ActiveCampaign double sync (salesperson CRM changes reflected on FormEntry) | CODE0 + CODE1 (outbound half) |

| Debug FormEntry CRM sync failure (storage_status=ERROR / stuck PENDING) | CODE2 + CODE3 (payload requirements) + CODE4 (retry via process) |

| ActiveCampaign double sync not updating FormEntry after salesperson CRM change | CODE0 |

| Inbound signups, attribution, and acquisition (forms + invites) | CODE0 + CODE1 + CODE2 |

| Wire lead events to n8n / Zapier | CODE0 + CODE1 |

| Acquisition funnel drill-down to lead detail | CODE0 + CODE1 |

| Referral performance (capture marker vs payouts) | CODE0 + bc-payments-* / commission endpoints |

| Onboard a new student | bc-admissions-* + bc-payments-* + bc-authenticate-* |

| Log in as staff and call academy-scoped endpoints | CODE0 |

| Check whether a staff user can perform an action in an academy | CODE0 (Track B — list or probe capabilities) |

| Invite a staff member to an academy | CODE0 + CODE1 |

| Resend or manage pending staff invitations | CODE0 |

| Accept a staff invitation (first-time onboarding) | CODE0 + CODE1 (post-accept session) |

| Manage academy GitHub organization users (list, schedule ADD/DELETE/IGNORE, sync, invite URL, error log) | CODE0 + CODE1 |

| Rebuild a staff frontend for GitHub org membership sync | CODE0 + CODE1 |

| Authenticate staff via hosted login in an external admin app (redirect + callback token) | CODE0 (Track A — universal hosted login) |

| Connect a third-party app to student authentication (hosted login redirect + callback token) | CODE0 |

| Keep a staff user logged in across 4Geeks subdomains (shared session cookie) | CODE0 + CODE1 (to obtain the token) |

| Provision a resource for a student | bc-provisioning-* + bc-admissions-* (verify enrollment status first) |

| Create and run an NPS-style cohort satisfaction study | bc-feedback-create-manage-nps-survey + bc-admissions-* (resolve target cohorts before configuration scope or send_emails) |

| Configure academy VPS provisioning (profiles, credentials, settings) | bc-provisioning-settings-and-credentials |

| Create or update a registry asset (lesson, exercise, project, quiz) including category and technologies | CODE0 + CODE1 (read_asset/crud_asset, Academy header; look up category ids and technology slugs first) |

| Merge duplicate registry technology tags (parent/alias) and retag assets | CODE0 + CODE1 (PUT parent does not copy tags; retag each child assets slug with the parent) + CODE3 (read_technology/crud_technology, Academy header) |

| Create or edit an academy event with tags and workshop asset selection | bc-events-create-and-edit-event + bc-marketing-* (fetch valid DISCOVERY tags) + CODE3 (search and validate workshop assets by type via GET /v1/registry/academy/asset) |

| Create a multi-day event series (shared event_group string on each session) | bc-events-create-and-edit-event (same event_group key on each POST/PUT event) + bc-events-during-event (list check-ins per session with ?event=<id>) |

| Connect Luma webhooks for real-time guest registration and check-in | bc-events-configure-luma-webhooks + bc-events-create-and-edit-event (set luma_id on the event) + bc-marketing-* (ActiveCampaign automation for registrations) |

| Bulk-import event attendees (RSVP + attended) after event exists | bc-events-bulk-import-checkins + bc-events-create-and-edit-event (resolve event_id) + optional bc-marketing-* if run_marketing=true |

| Reschedule, suspend, export guests, import outside registrations, or create promo UTM links for a scheduled/live workshop | CODE0 + bc-events-create-and-edit-event + optional bc-events-bulk-import-checkins, CODE3, bc-marketing-* |

| After a workshop ends: finalize attendance (incl. Luma guests), publish recording, verify follow-ups | CODE0 + bc-events-create-and-edit-event + optional bc-events-bulk-import-checkins, CODE3 |

| Configure event NPS, resend to non-responders, or review workshop satisfaction scores | CODE0 + CODE1 (finish event and attendance first) |

| Configure academy Slack integration and manage sync health | bc-notify-manage-academy-slackintegration + bc-admissions-* (students/cohorts drive Slack mappings) + CODE2 (Slack OAuth endpoints live in auth) |

| Build or debug a frontend dashboard that reads monitoring reports | bc-monitoring-read-reports-api + CODE1 (academy-scoped capability and header requirements drive access outcomes) |

| Read acquisition monitoring insights (funnel tiers, top assets, top workshops, attribution mix) | CODE0 + CODE1 (academy-scoped capability and Academy header drive access and scope) |

| Create a marketing course from scratch or by cloning another course | bc-marketing-create-or-clone-course + CODE1 (staff list: GET /v1/marketing/academy/course with comma-separated numeric Academy ids and crud_course read-aggregate; create/clone: POST with Academy header; clone requires crud_course on source course academy too) |

| Diagnose why graduation/certificate auto-issuance did not happen for a student or cohort | bc-certificate-manage-and-assign-specialties + bc-admissions-* (use GET /v1/certificate/diagnostic with kind=graduation|certificate, plus academy-scoped capability/header) |

| Align or extend syllabus design with the school skills framework (job role stages, skills on the go) | bc-admissions-* (syllabus, cohorts) + bc-talentdevelopment-manage-skills (career path, stages, stage_skill, domains) |

| Check whether a syllabus covers the skills required by a job role, career path, or stage | CODE0 (syllabus skills + client-side diff by skill slug against skill?stage_ids=) + bc-talentdevelopment-manage-skills (resolve career path and stages; the API has no syllabus-to-career-path link) |

| Find which skills a syllabus teaches and fill skill gaps in its assets | CODE0 + CODE1 (asset skills come from the asset source file; find assets with ?skills=) + bc-talentdevelopment-manage-skills (skill slugs must exist in the catalog) |

| Cancel a user subscription and optionally issue a refund | bc-payments-cancel-subscription-and-refund + CODE1 (use the skill for actor-specific flow and endpoint order, then use BC_REFUNDS for refund payload semantics and validations) |

| Configure academy Stripe payment gateway credentials | CODE0 |

| Create or manage checkout payment methods for an academy | CODE0 |

| Set academy main currency | CODE0 (Step 0 — main_currency via admissions academy/me) |

| Enable credit card payments for an academy | CODE0 Step 0 → CODE1 → Path A (main currency, then Stripe, then credit-card catalog entry) |

| Add bank transfer or manual payment option at checkout | CODE0 (Path B) |

| Set up academy commerce end-to-end (payments → services → plans → courses) | CODE0 → bc-payments-manage-services → CODE2 → CODE3 |

| Create or update academy payment plans (sets, consumables, pricing, financing) | CODE0 |

| Configure plan upgrade / upsell offers between plans | CODE0 (Path B) |

| Read academy active-users / seat month invoice (daily snapshots + high-water-mark month) | CODE0 + CODE1 (read_active_users_bill, Academy header; internal_billing via Django admin) |

| Identify which students were billed on an active-users bill (resolve cohort item user_ids to student profiles) | CODE1 + CODE2 (lookup uses GET /v1/auth/academy/student?users= and needs read_student in addition to read_active_users_bill) |

| Diagnose why an asset telemetry is missing for users/tasks | bc-assignment-diagnose-asset-telemetry + CODE1 (validate asset slug and translation/canonical context when telemetry appears split by locale) |

| Queue or interpret asset-level telemetry_stats (telemetry_stats JSON on assets) | bc-assignment-diagnose-asset-telemetry + CODE2 (read updated stats from the asset; sync_telemetry_stats is a registry action outside this skill’s write path) |

| Inspect incoming LearnPack telemetry webhook logs by student/event/asset/package filters | bc-assignment-diagnose-asset-telemetry + CODE1 (academy capability/header scope and identity checks) |

| Delete LearnPack webhook logs (single or bulk cleanup) | bc-assignment-diagnose-asset-telemetry + CODE1 (cleanup is academy-scoped and restricted to ERROR webhooks; bulk delete requires status=ERROR) |

| Configure per-academy LearnPack telemetry webhook ignore rules (by user, package, asset slug, or event) | bc-assignment-diagnose-asset-telemetry — use GET/PUT /v1/assignment/academy/learnpack/telemetry-webhook-ignore (rules are stored under learnpack_features.telemetry_webhook_ignore on academy auth settings) |

| Review PROJECT syllabus tasks (list pending DONE deliveries oldest-first, load asset config, submit PUT approval/rejection — ignoring uses the same PUT with revision_status=IGNORED, not a separate route) | CODE5 + CODE6 (academy asset GET for config and related fields) + CODE8 (token / headers as needed) |


Routing Rules

When only one domain is involved: Load the single matching skill and proceed.

When multiple domains are involved: Load all relevant skills, read each one fully, then identify any conflict or ordering constraint between them before calling any endpoint. Cross-domain ordering instructions will be in the use-case skill, not in the individual domain skills.

When no skill exists yet for the task: Fall back to the BreatheCode API documentation directly. Do not guess endpoint behavior — ask the user to confirm the correct endpoint or create a new skill for the use case.

When unsure which domain applies: Re-read the domain map above. If still ambiguous, ask the user to clarify before proceeding — do not assume.


API Conventions

Assume these conventions for all BreatheCode API endpoints unless a domain skill or endpoint docs say otherwise.

Pagination

Academy (staff) endpoints

Error responses

Language and translated errors


Checklist

  1. [ ] Identified the domain(s) from the domain map.
  2. [ ] Loaded all relevant skill(s) before calling any endpoint.
  3. [ ] If cross-domain, checked the cross-domain workflow table and loaded all required skills.
  4. [ ] If no skill exists for the task, flagged this to the user rather than guessing.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.