# New Service v2 Endpoint

**URL:** <https://tosdr.community/t/new-service-v2-endpoint/2930>\
**Category:** API\
**Tags:** service\
**Created:** [June 21, 2023, 1:09pm UTC](https://tosdr.community/t/new-service-v2-endpoint/2930 "2023-06-21T13:09:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin](https://tosdr.community/user_avatar/tosdr.community/justin/32/1657_2.png) [@justin](https://tosdr.community/u/justin)\
**Post date:** [June 21, 2023, 1:09pm UTC](https://tosdr.community/t/new-service-v2-endpoint/2930/1 "2023-06-21T13:09:20Z")

</div>

Hello Developers!

Today I am announcing the release of a new Service API

✨ Service v2 ✨

[https://developers.tosdr.org/dev/get-service-v2](https://developers.tosdr.org/dev/get-service-v2)

As always with a new API Version there are breaking changes in comparison to v1, I’ll list them below:

## General

- Service v2 now uses the `id` parameter rather than `service`, you can also no longer query by slug

## No Query

- The field `is_comprehensively_reviewed` is now a boolean, this was a bug in v1
- The field `status` has been removed completely
- The field `created_at` and `updated_at` are no longer an array, its a string now and displays a postgres timestamp
- The field `links` has been completely removed.
- The field `rating` is no longer an array but rather a string containing the letter of the Grade or Null, the Prefix `Grade` has been removed
- The field `url` has been removed completely

## Query

- The field `is_comprehensively_reviewed` is now a boolean, this was a bug in v1
- The field `status` has been removed completely
- The field `created_at` and `updated_at` are no longer an array, its a string now and displays a postgres timestamp
- The field `id` is now cast as an Integer
- The field `text` and `xpath` in `documents` has been completely removed
- The field `case` has been added to `points` and contains a complete case object with the properties `classification`, `description`, `title`, `id`, `topic_id` and `weight`
- The field `case_id` in `points` has been completely removed
- The field `rating` has the Prefix `Grade` removed
- The field `url` has been removed completely

If there are any questions or help with migration dont hesitate to ask in our discord or in #Developers

---

<div class="post-metadata">

**Author:** ![system](https://s3.tosdr.community/original/2X/a/a3a33872cc3bbba2093b58aec7533dcff56717c0.svg) [@system](https://tosdr.community/u/system)\
**Post date:** [July 21, 2023, 1:10pm UTC](https://tosdr.community/t/new-service-v2-endpoint/2930/2 "2023-07-21T13:10:13Z")

</div>

This topic was automatically closed after 9 days. New replies are no longer allowed.
