Cost_center - https://api.zoom.us/v2/users/${userId}

When I tried to get the user (use https://api.zoom.us/v2/users/{user_id}), I noticed that the item ‘cost_center’ was increasing before I knew it.
I think the documentation is outdated, and I’m confused because it hasn’t been announced.
Is this a permanent change?

docs:
://developers.zoom.us/docs/api/users/#tag/users/GET/users/{userId}

Hi @hide381815963
Thanks for reaching out to us and welcome to the Zoom Developer Forum!
What do you mean by ‘cost_center’ was increasing? could you please share more details about what you are seeing

1 Like

Thank you very much for finding my post.

I defined and used an API response model based on the published specifications.(use swagger:Java)
Recently, I failed to process an API response, and when I looked at the error details, I found that an undefined item: [cost_center] was the cause.
Since it wasn’t in the API specification, I posted it here.

respons sample:

{"id":"qcD6O8lVRZawO3f_VYImOw","first_name":"name","last_name":"lastname","display_name":"fullname","email":"xxx@example.com,"type":1,"role_name":"Owner","pmi":12345678,"use_pmi":false,"personal_meeting_url":"https://us04web.zoom.us/j/12345678?pwd=xxxxxxxxxxxxx.1","timezone":"Asia/Tokyo","verified":1,"dept":"","created_at":"2024-07-25T05:36:56Z","last_login_time":"2024-11-08T07:45:55Z","cms_user_id":"","jid":"xxxxxxxxxxxxxxxxxx@xmpp.zoom.us","group_ids":[],"im_group_ids":[],"account_id":"xxxxxxxxxxxxxxx-M1URGg","language":"jp-JP","phone_country":"","phone_number":"","status":"active","job_title":"","cost_center":"","location":"","login_types":[100],"role_id":"0","cluster":"us04","user_created_at":"2024-07-25T05:36:55Z"}

This announcement also appears to be related.
://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0061789

Thanks @hide381815963
I just reported this issue to our Documentation team so they can updates our Docs

1 Like

@elisa.zoom

Thank you very much.
I was very relieved to receive a quick reply.

1 Like

Hey everyone,

Recently we launched Zoom Rivet for Node.js. Zoom Rivet is Zoom’s Official API Library and API Wrapper.

We currently support Node.js. Java, Python, GO, C#, and other languages are coming soon or being considered.

Zoom Rivet is available on npm and can be used to automatically handle OAuth and easily call Zoom APIs like Meetings, Phone, Users, Team Chat, Chatbot, Accounts, Video SDK, and more. It even includes a Webhook server to easily receive Zoom Webhooks.

npm install @zoom/rivet

Example that handles OAuth and calls a Meeting API and listens to a webhook event:

import { MeetingsS2SAuthClient } from "@zoom/rivet/meetings";

(async () => {
   const meetingsClient = new MeetingsS2SAuthClient({
      clientId: process.env.CLIENT_ID,
      clientSecret: process.env.CLIENT_SECRET,
      webhooksSecretToken: process.env.WEBHOOKS_SECRET_TOKEN,
      accountId: process.env.ACCOUNT_ID
   });

   // Rivet Events and Endpoints Go Here

   meetingsClient.endpoints.meetings.getMeeting({
      path: { meetingId: "MEETINGID" }
   }).then((response) => {
      console.log(response)
   });

   meetingsClient.webEventConsumer.event("meeting.started", (response) => {
      console.log(response.payload);
   })

   const server = await meetingsClient.start();

   console.log(`Zoom Rivet Events Server running on: ${JSON.stringify(server.address())}`);
})();

NPM:

Docs:

Sample App:

For feedback, requests, or questions please refer to the Rivet Devforum Category:

Best,
Tommy