OGSM.online support
  • Contact
  • Nederlands

OGSM API

Lees dit artikel in het Nederlands

Version 3 adds pagination. Every list now comes back in pages of at most 1500 records, wrapped in an object that tells you how many pages there are. Everybody should use version 3. Version 2 (/api/v2/) keeps working as it did, returning every record at once, but it is no longer documented and might give timeouts. Moving over means changing v2 to v3 in your URLs and reading the records from data instead of from the response itself, see Pagination.

The API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

All endpoints live under your own subdomain:

https://yoursubdomain.ogsm.online/api/v3/

The API has to be switched on for your organization. Admins find it under Settings -> API. If you’re missing that menu option, contact our support team to enable the API for you.

Authentication

There are two kinds of credentials:

  • A personal API token acts as you. It sees exactly what you see in OGSM.online, can change what you are allowed to change, and everything it changes shows up under your name. Use it for scripts and AI tools such as Claude Code that work on your behalf.
  • Organization credentials belong to the whole organization. They give read access to all of its data and let you add, change and delete measurements on goals and KPIs.

Personal API token (bearer)

Every user can create personal API tokens once the API is switched on for the organization. Go to Account -> My profile and click the plus next to Personal API tokens. Give the token a name that tells you where you use it, for example “Claude on my laptop”, and choose:

  • Access: Read only only allows GET requests, Read and write also allows changes. Start with read only when you are trying something out.
  • Valid for: 1 month, 3 months, 1 year or always. After that the token stops working and you create a new one.

The token is shown once, right after you create it, so copy it straight away and treat it like a password. Send it as a bearer token on every request:

Authorization: Bearer <your token>

Under Personal API tokens you see your tokens, when they expire and when they were last used. Revoke a token there as soon as you no longer need it, or when you think someone else may have it. A revoked or expired token is answered with 401, and a read only token that tries to change something with 403 and { "error": "read_only_token" }.

A personal token stops working when your account is removed from the organization, and all your personal tokens, in every organization, are revoked when you change your password. It only works on the subdomain of the organization it was created in.

Using a personal token with AI tools

AI tools that can run commands on your computer, such as Claude Code, Claude Cowork or Codex, can use the API with a personal token. Keep the token out of the conversation: put it in an environment variable, for example OGSM_TOKEN, and tell the tool where to find it:

Read my OGSMs on yoursubdomain.ogsm.online using the API described at https://help.ogsm.online/article/117-ogsm-api. The personal API token is in the environment variable OGSM_TOKEN.

Chat apps such as ChatGPT and the chat in Claude Desktop cannot send the token themselves, so they cannot use the API this way.

Organization API token (bearer)

Because organization credentials belong to the organization rather than to a person, everything you add, change or delete through them shows up as “System” in the OGSM history, and it does not send any notifications to your team.

Admins find the token under Settings -> API -> Settings. Copy it and send it as a bearer token on every request:

Authorization: Bearer <your token>

The token does not expire, but it is regenerated whenever API access is switched off and on again, which invalidates the previous one.

Organization username and password (basic)

Organizations that set up the API before tokens existed authenticate using the HTTP “Basic” schema, with the API username and password from Settings -> API. It gives exactly the same access as the token above.

New organizations get a bearer token instead of a username and password. If you’re still on basic authentication and want to move over, contact our support team.

Errors

Conventional HTTP response codes are used to indicate the success or failure of an API request. In general: codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided, for example a missing required field. Codes in the 5xx range indicate an error with our servers.

Code Meaning
400 The page parameter is not a page number
401 Missing, invalid, expired or revoked credentials
403 These credentials are not allowed to do this, for example a read only token that tries to change something
404 The resource does not exist, or is not visible to this user
422 The body was understood but rejected. The response is an object of field names and their error messages

A successful delete answers with 204 and an empty body.

Body formats

All body information you send needs to be encoded in JSON format. Don’t forget to send the correct header with it:

Content-Type: application/json

Pagination

Every call that lists records returns them in pages of at most 1500, sorted by id. The records are in data, and meta tells you where you are:

{
  data: [ ... ],
  meta: {
    page: 1,
    per_page: 1500,
    total_pages: 3,
    total_count: 4210,
    next_page: 2
  }
}

Without a page parameter you get the first page. Ask for the next one with page, until next_page is null:

GET /api/v3/actions.json?page=2

Other parameters, like canvas_id on actions, combine with page as usual. A page beyond the last one comes back with an empty data.

Field values

A few fields come back as fixed sets of values:

  • traffic_light is "green", "amber", "red" or null when nothing has been reported yet. Cards report the traffic light of their most recent progress report.
  • status on an action is an object naming the status column the action sits in: { "id": "doing", "name": "In progress" }, or null when the action has no status yet. If your organization uses custom action statuses, you get those names and ids, so read the available statuses from /api/v3/statuses.json instead of hard-coding them.
  • status on an action progress report holds only the name of the standard status: "Icebox", "To do", "In progress" or "Done".
  • kind on a progress report or measurement tells you what kind of value it holds: "current" for an actual progress report or measurement, "target" for a target value, and "aggregation", "imposed" or "impose_down" for values OGSM.online calculates or carries over between items itself. If you only want the actual measurements, for example in Power BI, keep the reports with "current".
  • priority is "none", "low", "normal", "high" or "very_high".
  • aggregation_method is "sum", "average", "min", "max", "median", "none", "sum_per_quarter", "average_per_quarter", "sum_per_year" or "average_per_year".
  • chart_type is "individual", "quarter_average", "quarter_sum", "year_average" or "year_sum".
  • relations holds one entry per place the card appears on an OGSM. Its id is the relation id used in the card’s detail URL in the app, which is what you need if you want to link back from your own system.

Resources

The following resources are available through the API. Objectives, goals, strategies, KPIs and actions can also be created and changed, and actions can get comments. The rest is read only. Let our support team know if you need to be able to create or update other resources so we can extend the API with it.

Creating and changing only works with a personal API token with read and write access, because every change is made by a person. You can do exactly what you can do in OGSM.online itself. A read only token gets 403 with read_only_token, and the organization token or username and password get 403 as well. A few rules apply to every kind:

  • Nothing can be deleted through the API.
  • A change only changes fields. It never moves a card to another place on the OGSM; do that in OGSM.online.
  • When the placement is not allowed, for example a parent on another OGSM or of the wrong kind, you get 422 with the reason under parent. An unknown value for a field with a fixed set of values also gives 422.
  • label_ids is a list of label names and assignee_id the id of a user.
  • Images in a description sent as inline base64 (<img src="data:image/png;base64,...">) are stored as attachments.
  • When the request is successful you’ll receive the complete object as response.

Teams

The team object looks like this:

{
  id: 123,
  name: "team name"
}

All API calls regarding teams use this structure.

List all teams

GET /api/v3/teams.json

This will return a page of team objects.

OGSMs

The OGSM object looks like this:

{
  team: { "id": 123 },
  id: 123,
  name: "OGSM name",
  status: "active"
}

All API calls regarding OGSMs use this structure.

List all OGSMs

GET /api/v3/ogsm_canvases.json

This will return a page of OGSM objects.

Objectives

The objective object looks like this:

{
  id: 123,
  title: "Objective title",
  labels: [{ name: "label 1" }, { name: "Label 2" }],
  description: "<p>Description</p>",
  assignee: { name: "Firstname Lastname" },
  ogsm_canvases: [{ id: 789, row_order: 91 }],
  relations: [{ id: "8ebcb715-b51d-45b3-9271-5beb9b329472", ogsm_canvas_id: 789, parent_id: null }],
  traffic_light: "green",
  archived: false
}

All API calls regarding objectives use this structure.

List all objectives

GET /api/v3/objectives.json

This will return a page of objective objects.

Create an objective (personal API token only)

POST /api/v3/objectives.json

{ "ogsm_objective": { "canvas": { "id": 789 }, "title": "Objective title" } }

canvas is the OGSM the objective is placed on and title is required. You can also send description, assignee_id and label_ids. An objective has no parent.

For example:

curl -H "content-type: application/json" \
  -H "authorization: Bearer <your personal token>" \
  -d '{"ogsm_objective": {"canvas": {"id": 789}, "title": "Become the market leader in the Benelux"}}' \
  https://yoursubdomain.ogsm.online/api/v3/objectives.json

Change an objective (personal API token only)

PATCH /api/v3/objectives/123.json

{ "ogsm_objective": { "title": "Changed title" } }

Send only the fields you want to change. It takes the same fields as creating an objective, except canvas.

Objective progress report

The objective progress report object looks like this:

{
  id: 123,
  objective: { "id": 123 },
  at: "2024-01-01",
  kind: "current",
  traffic_light: "green",
  description: "<p>Description</p>",
  decision: "<p>Decision</p>"
}

All API calls regarding objective progress reports use this structure.

List all objective progress reports

GET /api/v3/objective_reports.json

This will return a page of objective progress report objects.

Goals

The goal object looks like this:

{
  id: 123,
  title: "Goal title",
  labels: [{ name: "label 1" }, { name: "Label 2" }],
  description: "<p>Description</p>",
  target_unit: "EUR",
  assignee: { name: "Firstname Lastname" },
  ogsm_canvases: [{ id: 789, row_order: 91 }],
  relations: [{ id: "7ebcb715-b51d-45b3-9271-5beb9b329472", ogsm_canvas_id: 789, parent_id: null }],
  traffic_light: "red",
  archived: false,
  chart_vertical_min: null,
  aggregation_method: "sum",
  chart_type: "individual"
}

All API calls regarding goals use this structure.

List all goals

GET /api/v3/goals.json

This will return a page of goal objects.

Create a goal (personal API token only)

POST /api/v3/goals.json

{ "ogsm_goal": { "canvas": { "id": 789 }, "title": "Goal title", "target_unit": "EUR" } }

canvas is the OGSM the goal is placed on and title is required. You can also send description, assignee_id, label_ids, target_unit, chart_vertical_min, aggregation_method and chart_type (see field values). Send parent with the id of a goal on the same OGSM to create a sub goal; a sub goal takes over the target unit of its parent.

For example, to create a sub goal under the goal with id 456:

curl -H "content-type: application/json" \
  -H "authorization: Bearer <your personal token>" \
  -d '{"ogsm_goal": {"canvas": {"id": 789}, "parent": {"id": 456}, "title": "Revenue in Belgium", "aggregation_method": "sum"}}' \
  https://yoursubdomain.ogsm.online/api/v3/goals.json

Change a goal (personal API token only)

PATCH /api/v3/goals/123.json

{ "ogsm_goal": { "chart_type": "quarter_sum" } }

Send only the fields you want to change. It takes the same fields as creating a goal, except canvas and parent.

Goal measurements

The goal measurement object looks like this:

{
  id: 123,
  goal: { id: 456 },
  at: "2024-01-01",
  kind: "current",
  current_value: 78.9,
  target_value: null,
  traffic_light: "green",
  show_in_ogsm: false,
  description: "Example",
  decision: "<p>Decision</p>"
}

All API calls regarding goal measurements use this structure.

List all goal measurements

GET /api/v3/goal_reports.json

This will return a page of goal measurement objects.

Create a measurement for a goal

POST /api/v3/goal_reports.json

{ "goal_report": { "goal": { "id": 123 }, "at": "2022-12-14", "current_value": 45.6 } }

Send a JSON encoded goal measurement object as the body to create the measurement. Besides at and current_value you can set target_value, traffic_light and show_in_ogsm. Leave out the id, it will be generated by the system. When the creation is successful you’ll receive the complete goal measurement object as response including the newly generated id.

For example, to create a measurement with value 45.6 for the goal with id 123:

curl -H "content-type: application/json" \
  -H "authorization: Bearer <your token>" \
  -d '{"goal_report": {"goal": {"id": 123}, "at": "2024-10-09", "current_value": 45.6}}' \
  https://yoursubdomain.ogsm.online/api/v3/goal_reports.json

Change a measurement for a goal

PATCH /api/v3/goal_reports/123.json

{ "goal_report": { "current_value": 47.1 } }

Send only the fields you want to change: at, current_value, target_value, traffic_light and show_in_ogsm. Anything you leave out keeps the value it has, so there is no need to send the whole measurement back. When the update is successful you’ll receive the complete goal measurement object as response.

For example, to correct the value of the measurement with id 123:

curl -X PATCH -H "content-type: application/json" \
  -H "authorization: Bearer <your token>" \
  -d '{"goal_report": {"current_value": 47.1}}' \
  https://yoursubdomain.ogsm.online/api/v3/goal_reports/123.json

Delete a measurement for a goal

DELETE /api/v3/goal_reports/123.json

A successful delete answers with 204 and an empty body. The measurement disappears from the OGSM and from the list of measurements, and the totals it counted towards are recalculated. Nothing is destroyed straight away: a deleted measurement lands in the Trash, where you can restore it yourself as long as it has not been permanently cleaned up.

For example, to delete the measurement with id 123:

curl -X DELETE \
  -H "authorization: Bearer <your token>" \
  https://yoursubdomain.ogsm.online/api/v3/goal_reports/123.json

Change many measurements of goals at once

POST /api/v3/goal_report_batches.json

{ "goal_report_batch": { "operations": [
  { "op": "create", "goal": { "id": 123 }, "at": "2024-10-09", "current_value": 45.6 },
  { "op": "update", "id": 456, "current_value": 47.1 },
  { "op": "delete", "id": 789 }
] } }

If you feed measurements in from another system, you rarely have a single change to make. Send them together as a batch instead of making a call per measurement. Every entry in operations says what it does in op:

  • create needs the goal the measurement belongs to and takes the same fields as a single create: at, current_value, target_value, traffic_light and show_in_ogsm.
  • update needs the id of the measurement plus the fields you want to change. Anything you leave out keeps the value it has.
  • delete needs the id of the measurement and nothing else.

A batch holds at most 500 operations. Send more than that, or leave out an id or a goal an operation needs, and the whole batch is refused with 422 before anything is changed.

You can queue 5 batches per 5 minutes. Goals and KPIs are counted separately, so that is up to 2500 goal measurements every 5 minutes. Anything beyond it is answered with 429 and { "error": "rate_limited" }, and nothing is queued, so wait and send the batch again. Asking for the result of a batch you already queued does not count towards this.

The batch is not applied while you wait. You get 202 straight away, with a batch object and a Location header pointing at the address to ask for the result:

{
  id: "9c4ab0e2-6e29-4a5f-9d9e-70b11a0f2f81",
  status: "queued",
  operation_count: 3,
  succeeded: 0,
  failed: 0,
  created_at: "2024-10-09T07:21:44.000Z",
  completed_at: null,
  results: []
}

For example, to create one measurement and delete another in a single call:

curl -H "content-type: application/json" \
  -H "authorization: Bearer <your token>" \
  -d '{"goal_report_batch": {"operations": [{"op": "create", "goal": {"id": 123}, "at": "2024-10-09", "current_value": 45.6}, {"op": "delete", "id": 789}]}}' \
  https://yoursubdomain.ogsm.online/api/v3/goal_report_batches.json

Ask for the result of a batch of goal measurements

GET /api/v3/goal_report_batches/9c4ab0e2-6e29-4a5f-9d9e-70b11a0f2f81.json

status is queued as long as the batch is waiting, processing while it is being applied and completed once every operation has had its turn. Keep asking until you see completed; a few seconds between attempts is plenty. failed means something went wrong with the batch itself rather than with one of its operations; whatever was applied before that stays applied.

Operations are applied one by one, and each one stands on its own, so one bad row does not cost you the rest of the batch. results holds an entry per operation, in the order you sent them, each with the response that operation would have received as a call of its own:

{
  id: "9c4ab0e2-6e29-4a5f-9d9e-70b11a0f2f81",
  status: "completed",
  operation_count: 3,
  succeeded: 2,
  failed: 1,
  created_at: "2024-10-09T07:21:44.000Z",
  completed_at: "2024-10-09T07:21:46.000Z",
  results: [
    { index: 0, op: "create", status: 201, id: 901, goal_report: { id: 901, goal: { id: 123 }, at: "2024-10-09", current_value: 45.6 } },
    { index: 1, op: "update", status: 404, id: 456, error: "Measurement Not Found" },
    { index: 2, op: "delete", status: 204, id: 789 }
  ]
}
Status Meaning
200 The measurement was changed
201 The measurement was created
204 The measurement was deleted
403 These credentials are not allowed to change this measurement
404 The goal or the measurement does not exist, or is not visible to these credentials
422 The operation was rejected. errors names the fields and what is wrong with them

A batch is only visible to the credentials that sent it.

Strategies

The strategy object looks like this:

{
  id: 123,
  title: "Strategy title",
  labels: [{ name: "label 1" }, { name: "Label 2" }],
  description: "<p>Description</p>",
  assignee: { name: "Firstname Lastname" },
  ogsm_canvases: [{ id: 789, row_order: 91 }],
  relations: [{ id: "6ebcb715-b51d-45b3-9271-5beb9b329472", ogsm_canvas_id: 789, parent_id: null }],
  traffic_light: "green",
  archived: false
}

All API calls regarding strategies use this structure.

List all strategies

GET /api/v3/strategies.json

This will return a page of strategy objects.

Create a strategy (personal API token only)

POST /api/v3/strategies.json

{ "ogsm_strategy": { "canvas": { "id": 789 }, "title": "Strategy title" } }

canvas is the OGSM the strategy is placed on and title is required. You can also send description, assignee_id and label_ids. A strategy has no parent.

Change a strategy (personal API token only)

PATCH /api/v3/strategies/123.json

{ "ogsm_strategy": { "title": "Changed title" } }

Send only the fields you want to change. It takes the same fields as creating a strategy, except canvas.

Strategy progress report

The strategy progress report object looks like this:

{
  id: 123,
  strategy: { "id": 123 },
  at: "2024-01-01",
  kind: "current",
  traffic_light: "green",
  description: "<p>Description</p>",
  decision: "<p>Decision</p>"
}

All API calls regarding strategy progress reports use this structure.

List all strategy progress reports

GET /api/v3/strategy_reports.json

This will return a page of strategy progress report objects.

KPI

The KPI object looks like this:

{
  id: 123,
  title: "KPI title",
  labels: [{ name: "label 1" }, { name: "Label 2" }],
  strategies: [{ id: 456 }],
  description: "<p>Description</p>",
  target_unit: "EUR",
  traffic_light: "red",
  assignee: { name: "Firstname Lastname" },
  ogsm_canvases: [{ id: 789, row_order: 91 }],
  relations: [{ id: "5ebcb715-b51d-45b3-9271-5beb9b329472", ogsm_canvas_id: 789, parent_id: 456 }],
  archived: false,
  chart_vertical_min: null,
  aggregation_method: "sum",
  chart_type: "individual"
}

All API calls regarding KPIs use this structure.

List all KPIs

GET /api/v3/indicators.json

This will return a page of KPI objects.

Create a KPI (personal API token only)

POST /api/v3/indicators.json

{ "ogsm_indicator": { "canvas": { "id": 789 }, "parent": { "id": 456 }, "title": "KPI title" } }

canvas, parent and title are required. parent is the id of a strategy on the same OGSM, or of a KPI to create a sub KPI. You can also send the same fields as for a goal: description, assignee_id, label_ids, target_unit, chart_vertical_min, aggregation_method and chart_type.

For example, to create a KPI under the strategy with id 456:

curl -H "content-type: application/json" \
  -H "authorization: Bearer <your personal token>" \
  -d '{"ogsm_indicator": {"canvas": {"id": 789}, "parent": {"id": 456}, "title": "Number of new customers", "target_unit": "customers"}}' \
  https://yoursubdomain.ogsm.online/api/v3/indicators.json

Change a KPI (personal API token only)

PATCH /api/v3/indicators/123.json

{ "ogsm_indicator": { "target_unit": "%" } }

Send only the fields you want to change. It takes the same fields as creating a KPI, except canvas and parent.

KPI measurements

The KPI measurement object looks like this:

{
  id: 123,
  indicator: { id: 456 },
  at: "2024-01-01",
  kind: "current",
  current_value: 78.9,
  target_value: null,
  traffic_light: "green",
  show_in_ogsm: false,
  description: "Example",
  decision: "<p>Decision</p>"
}

All API calls regarding KPI measurements use this structure.

List all KPI measurements

GET /api/v3/indicator_reports.json

This will return a page of KPI measurement objects.

Create a measurement for a KPI

POST /api/v3/indicator_reports.json

{ "indicator_report": { "indicator": { "id": 123 }, "at": "2022-12-14", "current_value": 45.6 } }

Send a JSON encoded KPI measurement object as the body to create the measurement. Besides at and current_value you can set target_value, traffic_light and show_in_ogsm. Leave out the id, it will be generated by the system. When the creation is successful you’ll receive the complete KPI measurement object as response including the newly generated id.

For example, to create a measurement with value 45.6 for the KPI with id 123:

curl -H "content-type: application/json" \
  -H "authorization: Bearer <your token>" \
  -d '{"indicator_report": {"indicator": {"id": 123}, "at": "2024-10-09", "current_value": 45.6}}' \
  https://yoursubdomain.ogsm.online/api/v3/indicator_reports.json

Change a measurement for a KPI

PATCH /api/v3/indicator_reports/123.json

{ "indicator_report": { "current_value": 47.1 } }

Send only the fields you want to change: at, current_value, target_value, traffic_light and show_in_ogsm. Anything you leave out keeps the value it has, so there is no need to send the whole measurement back. When the update is successful you’ll receive the complete KPI measurement object as response.

For example, to correct the value of the measurement with id 123:

curl -X PATCH -H "content-type: application/json" \
  -H "authorization: Bearer <your token>" \
  -d '{"indicator_report": {"current_value": 47.1}}' \
  https://yoursubdomain.ogsm.online/api/v3/indicator_reports/123.json

Delete a measurement for a KPI

DELETE /api/v3/indicator_reports/123.json

A successful delete answers with 204 and an empty body. The measurement disappears from the OGSM and from the list of measurements, and the totals it counted towards are recalculated. Nothing is destroyed straight away: a deleted measurement lands in the Trash, where you can restore it yourself as long as it has not been permanently cleaned up.

For example, to delete the measurement with id 123:

curl -X DELETE \
  -H "authorization: Bearer <your token>" \
  https://yoursubdomain.ogsm.online/api/v3/indicator_reports/123.json

Change many measurements of KPIs at once

POST /api/v3/indicator_report_batches.json

{ "indicator_report_batch": { "operations": [
  { "op": "create", "indicator": { "id": 123 }, "at": "2024-10-09", "current_value": 45.6 },
  { "op": "update", "id": 456, "current_value": 47.1 },
  { "op": "delete", "id": 789 }
] } }

If you feed measurements in from another system, you rarely have a single change to make. Send them together as a batch instead of making a call per measurement. Every entry in operations says what it does in op:

  • create needs the indicator the measurement belongs to and takes the same fields as a single create: at, current_value, target_value, traffic_light and show_in_ogsm.
  • update needs the id of the measurement plus the fields you want to change. Anything you leave out keeps the value it has.
  • delete needs the id of the measurement and nothing else.

A batch holds at most 500 operations. Send more than that, or leave out an id or an indicator an operation needs, and the whole batch is refused with 422 before anything is changed.

You can queue 5 batches per 5 minutes. Goals and KPIs are counted separately, so that is up to 2500 KPI measurements every 5 minutes. Anything beyond it is answered with 429 and { "error": "rate_limited" }, and nothing is queued, so wait and send the batch again. Asking for the result of a batch you already queued does not count towards this.

The batch is not applied while you wait. You get 202 straight away, with a batch object and a Location header pointing at the address to ask for the result:

{
  id: "9c4ab0e2-6e29-4a5f-9d9e-70b11a0f2f81",
  status: "queued",
  operation_count: 3,
  succeeded: 0,
  failed: 0,
  created_at: "2024-10-09T07:21:44.000Z",
  completed_at: null,
  results: []
}

For example, to create one measurement and delete another in a single call:

curl -H "content-type: application/json" \
  -H "authorization: Bearer <your token>" \
  -d '{"indicator_report_batch": {"operations": [{"op": "create", "indicator": {"id": 123}, "at": "2024-10-09", "current_value": 45.6}, {"op": "delete", "id": 789}]}}' \
  https://yoursubdomain.ogsm.online/api/v3/indicator_report_batches.json

Ask for the result of a batch of KPI measurements

GET /api/v3/indicator_report_batches/9c4ab0e2-6e29-4a5f-9d9e-70b11a0f2f81.json

status is queued as long as the batch is waiting, processing while it is being applied and completed once every operation has had its turn. Keep asking until you see completed; a few seconds between attempts is plenty. failed means something went wrong with the batch itself rather than with one of its operations; whatever was applied before that stays applied.

Operations are applied one by one, and each one stands on its own, so one bad row does not cost you the rest of the batch. results holds an entry per operation, in the order you sent them, each with the response that operation would have received as a call of its own:

{
  id: "9c4ab0e2-6e29-4a5f-9d9e-70b11a0f2f81",
  status: "completed",
  operation_count: 3,
  succeeded: 2,
  failed: 1,
  created_at: "2024-10-09T07:21:44.000Z",
  completed_at: "2024-10-09T07:21:46.000Z",
  results: [
    { index: 0, op: "create", status: 201, id: 901, indicator_report: { id: 901, indicator: { id: 123 }, at: "2024-10-09", current_value: 45.6 } },
    { index: 1, op: "update", status: 404, id: 456, error: "Measurement Not Found" },
    { index: 2, op: "delete", status: 204, id: 789 }
  ]
}
Status Meaning
200 The measurement was changed
201 The measurement was created
204 The measurement was deleted
403 These credentials are not allowed to change this measurement
404 The KPI or the measurement does not exist, or is not visible to these credentials
422 The operation was rejected. errors names the fields and what is wrong with them

A batch is only visible to the credentials that sent it.

Actions

The action object looks like this:

{
  id: 123,
  title: "Action title",
  labels: [{ name: "label 1" }, { name: "Label 2" }],
  strategies: [{ id: 456 }],
  description: "<p>Description</p>",
  assignee: { name: "Firstname Lastname" },
  involved: [{ type: "user", name: "Another name" }, { type: "team", name: "Marketing" }],
  start: "2024-01-01",
  due: "2024-12-31",
  status: { id: "doing", name: "In progress" },
  ogsm_canvases: [{ id: 789, row_order: 91 }],
  relations: [{ id: "3ebcb715-b51d-45b3-9271-5beb9b329472", ogsm_canvas_id: 789, parent_id: 456 }],
  traffic_light: "green",
  progress: 50,
  archived: false,
  effort: 3,
  added_value: 8,
  recurring: "weekly",
  priority: "high",
  budget_time_available: 400,
  budget_money_available: 2000,
  field_configuration: { name: "Project" },
  project-sponsor: "Firstname Lastname",
  results: "<p>results</p>"
}

All API calls regarding actions use this structure.

Everything after field_configuration depends on the card type. field_configuration names the card type the action uses (“Action”, “Project”, or one you defined yourself), and each of its text, number and person fields is added to the object under its own name, lowercased and with dashes instead of spaces. A field called “Project sponsor” becomes project-sponsor. Person fields come back as { name: "Firstname Lastname" }, the rest as plain values. So the exact set of keys differs per action.

List all actions

GET /api/v3/actions.json

This will return a page of action objects. Add canvas_id to limit the list to one OGSM:

GET /api/v3/actions.json?canvas_id=789

Create an action (personal API token only)

POST /api/v3/actions.json

{ "ogsm_action": { "canvas": { "id": 789 }, "strategy": { "id": 456 }, "title": "Action title" } }

canvas is the OGSM the action is placed on and title is required. strategy places the action under that strategy, and an action id there makes it an underlying action; it must be on the same OGSM, otherwise you get 422. Leave it out to place the action without one. You can also send description, start, due, list, effort, added_value, priority, budget_time_available, budget_money_available, assignee_id (the id of a user) and label_ids (a list of label names). list is the status, given as an id or name from the statuses or as one of "backlog", "todo", "doing" and "done". When the creation is successful you’ll receive the complete action object as response.

For example, to create an action under the strategy with id 456 on the OGSM with id 789:

curl -H "content-type: application/json" \
  -H "authorization: Bearer <your personal token>" \
  -d '{"ogsm_action": {"canvas": {"id": 789}, "strategy": {"id": 456}, "title": "Call the top 10 customers", "due": "2024-12-31", "list": "todo"}}' \
  https://yoursubdomain.ogsm.online/api/v3/actions.json

Change an action (personal API token only)

PATCH /api/v3/actions/123.json

{ "ogsm_action": { "list": "done" } }

Send only the fields you want to change. It takes the same fields as creating an action, except canvas and strategy. When the update is successful you’ll receive the complete action object as response.

Action comments

The comment object looks like this:

{
  id: 123,
  content: "Comment text",
  user: { id: 789, name: "Firstname Lastname" },
  created_at: "2026-01-15T10:22:31.000Z",
  updated_at: "2026-01-15T10:22:31.000Z"
}

List the comments on an action

GET /api/v3/actions/123/comments.json

This will return a page of comment objects, oldest first.

Add a comment to an action (personal API token only)

POST /api/v3/actions/123/comments.json

{ "comment": { "content": "Comment text" } }

The comment is placed under your name and you’ll receive the complete comment object as response.

Change a comment on an action (personal API token only)

PATCH /api/v3/actions/123/comments/456.json

{ "comment": { "content": "Changed comment text" } }

Action progress report

The action progress report object looks like this:

{
  id: 123,
  action: { "id": 123 },
  at: "2024-01-01",
  kind: "current",
  traffic_light: "green",
  description: "<p>Description</p>",
  progress: 50,
  status: { name: "In progress" },
  budget_time_used: 120,
  budget_money_used: 750,
  decision: "<p>Decision</p>"
}

All API calls regarding action progress reports use this structure.

List all action progress reports

GET /api/v3/action_reports.json

This will return a page of action progress report objects.

Action statuses

The status object looks like this:

{
  id: "doing",
  name: "In progress",
  base_list: "doing"
}

All API calls regarding statuses use this structure.

List all statuses

GET /api/v3/statuses.json

This will return a page of status objects, in the same order as the columns on the Actions page.

An organization without custom statuses gets the four standard statuses, whose id is "backlog", "todo", "doing" or "done". An organization with custom action statuses gets those instead: id is a uuid, name is the name your administrator gave the column, and base_list is the standard status it is linked to. Read the list once and use it to interpret the status of an action, which refers to one of these objects by id. base_list is what tells you what a custom status means, for example whether an action is done.

Users

The user object looks like this:

{
  id: 789,
  name: "user name",
  email_address: "email@example.com"
}

All API calls regarding users use this structure.

List all users

GET /api/v3/users.json

This will return a page of user objects.

Still need help? Contact us

Last updated on November 9, 2026

Related articles

  • Import measurements for goals and KPIs
  • Add measurement to KPI
  • Add measurement to goal
  • Using labels

    Categories

    • Brainstorm
    • OGSM - Basics
    • OGSM - Do, learn and adjust
    • OGSM - Advanced
    • OGSM - Process owner
    • OGSM - Administrator
    • Platform - Sign in and account
    • Platform - Administrator
    • Updates

    © Toolsfactory 2026.