Vekta API
The Vekta API lets coaches and athletes read and plan training data from their own tools and AI assistants.
For: Coaches · Athletes Apps: Web (to create your key)
What the API can do
The API gives your own tools the data you see in Vekta, and lets them plan training back into it. Use it to build dashboards, run your own analysis or connect Vekta to an AI assistant.
Read your data
Athletes and profiles: the athletes you coach, with name, date of birth, gender, height and the latest value of each metric, such as weight or Critical Power.
Activities: summaries, laps recorded by the device, pool lengths for swimming, laps and climbs detected by Vekta for cycling, best efforts and comments.
Streams: the full recorded data of an activity, such as power, heart rate, cadence, speed, altitude and GPS position. Data from CORE, Tymewear or Flowbio is included when it was recorded.
Metrics: the full history of body and performance metrics. Each value shows whether it was entered by the user or estimated by Vekta.
Sleep and wellness: nights recorded by connected devices such as Garmin, Oura or WHOOP, and answers to the daily Wellness Check-in: soreness, stress, sleep and fatigue.
Plan and write back
Planned workouts: create, update and delete them, including their full structure, for cycling, running and swimming. They are sent to the athlete's connected devices automatically, and deleting one removes it from the devices too. A hidden planned workout isn't sent.
Training Library: create, update and delete workouts in your library, then plan one for any athlete on any date in a single request.
Notes and events: create, update and delete them. A note hidden until a future date is only returned to the person who wrote it.
Comments: comment on activities, so you can reply to your athletes from your own tools.
Workspace invitations: invite someone to a Workspace as an athlete or a coach. You can optionally have Vekta email them the invitation code.
What it can't do
You can't upload, edit or delete activities, or change metrics, zones or settings, through the API. To add activities, connect a device or upload FIT files in Vekta. Learn more in Import your training history.
Who can use it
The API is included with every Vekta subscription at no extra cost. What you can reach depends on your role and on subscriptions.
Your own data: use the value
mein place of an athlete id. You need an active subscription, whether you pay for it or your coach covers it.Your athletes' data: available for every athlete in a Workspace where you are a Coach or an Admin, while that athlete has an active subscription. Your own subscription doesn't matter for this.
Athletes: your key reads what your account can see, so an athlete's key reaches their own data only.
Age: the API Rules require you to be at least 18 to create an API key.
Learn more about Workspace roles in Workspaces.
API access for each coach
Workspace Admins decide, coach by coach, who can reach the Workspace's athletes through the API. This protects athletes in Workspaces with several coaches.
On by default: every coach has API access until an Admin turns it off.
Admins: always have API access to the Workspace's athletes.
A "no" wins: if an athlete is in two of your Workspaces and your access is off in one of them, you can't reach that athlete through the API, even through the other Workspace. The setting explains this: "Turning this off blocks API access to this workspace's athletes, even through another workspace."
Admins change it in the Workspace's staff settings. Learn how in Invite and manage athletes and staff.
Get your API key
You create your own API keys in Vekta. There is no need to contact us.
Create a key
Open Settings, go to API and select New API key. The key is ready straight away.
Manage your keys
You can hold up to 10 keys, and rename or delete any of them on the same screen. A separate key for each tool you connect makes it easy to cut off one tool without touching the others.
One key per person
Keys belong to a person, not to a Workspace. Two coaches in the same Workspace each create their own key, and keys may not be shared.
Use it with an AI assistant
You don't need to code. An AI assistant on your computer writes and runs the code for you, so you can ask questions about your training in plain language and have it plan workouts or add notes.
Supported assistants: Claude Code, Codex and Gemini CLI, on a Mac or Windows computer. Each needs its own account with Anthropic, OpenAI or Google.
Set it up with one prompt: copy the setup prompt for your assistant from joinvekta.com/api, paste it into the assistant and send it. Vekta opens in your browser: create a key, copy it, and the assistant picks it up by itself. The key stays out of the chat.
Ready-made skills: Vekta Skills are prompts and tools for common jobs, such as a morning check of your athletes or a weekly training review. Skills that write to Vekta ask you to confirm first.
Browser chat apps: the browser versions of Claude and ChatGPT can't run it yet. A Vekta MCP server, which will bring the same access to them, is coming.
Use it in your own code
The Vekta API is a standard REST API that returns JSON, so Python, a spreadsheet, a notebook or a dashboard tool can read it directly.
Address and key: every request goes to
https://api.joinvekta.com, with your key sent as a bearer token:Authorization: Bearer vk_...Documentation: every endpoint and field is described at docs.joinvekta.com, with a guide to writing workout structures.
For AI tools: the docs have an llms.txt file, and every page is also available as Markdown by adding
.mdto its address. The full OpenAPI specification is at api.joinvekta.com/openapi.json.
Rate limits
Requests are limited to keep the API fast for everyone: 300 requests per minute per API key across all endpoints, and 30 requests per minute for each athlete you query. Each athlete has their own limit, so you can fetch several athletes in parallel. Limits apply to your account as a whole, so creating more keys doesn't raise them.
Apps that connect with OAuth
Third-party apps can also connect to Vekta users' accounts with OAuth, instead of asking for an API key. This is for developers building an app for other Vekta users.
With Vekta's approval: contact Vekta to get access for your app.
Your own data only: an app you connect reaches only your own data, and only the kinds of data it asked for and you approved.
Limits: an app can make 30 requests per minute for each user who connected it.
The scopes, tokens and authorisation steps are in the OAuth section of docs.joinvekta.com.
Get notified with webhooks
Instead of asking the API for changes again and again, your app can receive a webhook: Vekta sends a request to a URL you register as soon as something changes.
What sends one: an activity once Vekta has processed it, a comment, a planned workout, a note or event, a metric, a night of sleep or a Wellness Check-in answer.
What you receive: with an API key, the changes to the data you can read with it, yours and your athletes'. An OAuth app receives the changes of every user who connected it, for the data they approved.
Set it up: create up to 10 endpoints through the API, then verify each one before events start. The steps and security checks are in the Webhooks section of docs.joinvekta.com.
Keep your key safe
Your key gives access to your data and to your athletes' data, so treat it like a password.
Keep it private: never paste it into a chat, a shared prompt or a screenshot, and never put it in code you publish or share. Store it on your computer, for example in an environment variable, and let your tools read it from there.
If it's exposed: delete the key in Settings > API straight away and create a new one.
Coaches and athlete data: tell your athletes how you use their data, and get their explicit consent before you send their health data to an AI provider. Delete any athlete data you hold outside Vekta within 30 days after the athlete leaves your Workspace.
The full terms are in the Vekta API Rules. Learn more about how Vekta protects your data in Data privacy and security.
Errors and troubleshooting
Most errors come from the key, the account it belongs to, or a subscription. Error responses usually include a code and a short message that say what went wrong.
Error | What it means | What to do |
|---|---|---|
| The key is invalid, for example "Invalid API key.", or it was deleted. | Check you copied the whole key, starting with |
| The person whose data you asked for has no active subscription, for example "This athlete has no active Vekta subscription." | For your own data, activate a subscription. For an athlete, the athlete's subscription must be active, paid by them or covered by a coach. |
| You're linked to the data but only someone else can make this change, for example the person who created it or the coaches of the Workspace it was created in. | Ask that person, or make the change in that Workspace. |
| The athlete or item doesn't exist, or isn't linked to your account. | Check the id and that you're a Coach or Admin in one of the athlete's Workspaces. |
| You went over a rate limit. | Wait the number of seconds given in the |
| A path, query or payload isn't valid. An unknown field, such as a typo in a name, is an error too. | Check the request against docs.joinvekta.com. |
Your assistant says you have no subscription
Check which account the key belongs to. If you coach from one account and train on another, a key made on the coach account can't read your own training as me. Either create the key on the account you train with, or tell your assistant which athlete account holds your training.
Your key doesn't seem to match your account
If you signed in with Apple once and Google another time, you may have two Vekta accounts. Create your key while signed in to the account that holds your data and subscription. Learn more in Sign in and manage your account.
Frequently asked questions
How do I get an API key? Do I need to email support?
No. Open Settings, go to API and select New API key. It's ready straight away.
Why do I get subscription_required when my coach pays for me?
A subscription your coach covers counts. The error usually means the key was created on a different account from the one your coach covers, or you asked for an athlete whose own subscription isn't active.
Does the API cost extra?
No. It is included with every Vekta subscription. Claude Code, Codex and Gemini CLI need their own account with their provider.
Can I upload a FIT file through the API?
No. The API can't upload, edit or delete activities. Upload FIT files in Vekta instead.
Is an API key per Workspace or per coach?
Per person. Each coach creates their own key, which reaches the athletes in every Workspace where they are a Coach or an Admin, if their API access is on.
Can my athlete's key see my other athletes?
No. A key reads what its account can see. An athlete's key reaches that athlete's own data only.
Can I use it with ChatGPT or Claude in my browser?
Not yet. It works today with Claude Code, Codex and Gemini CLI on your computer. A Vekta MCP server for the browser versions is coming.
Can the API change my data on its own?
Only what you or your tools ask it to. It can plan workouts, add notes and events and comment on activities, but it can't delete activities, change metrics or alter your settings.
