diff --git a/src/EntityToJsonApi.php b/src/EntityToJsonApi.php
index 09f97be..dd2b97e 100644
--- a/src/EntityToJsonApi.php
+++ b/src/EntityToJsonApi.php
@@ -98,7 +98,8 @@ class EntityToJsonApi {
    */
   protected function calculateContext(EntityInterface $entity) {
     // TODO: Supporting includes requires adding the 'include' query string.
-    $path = sprintf('/jsonapi/%s/%s/%s', $entity->getEntityTypeId(), $entity->bundle(), $entity->uuid());
+    $path_prefix = $this->resourceTypeRepository->getPathPrefix();
+    $path = sprintf('/%s/%s/%s/%s', $path_prefix, $entity->getEntityTypeId(), $entity->bundle(), $entity->uuid());
     $request = Request::create($path, 'GET');
     return [
       'account' => $this->currentUser,
diff --git a/src/ResourceType/ResourceTypeRepository.php b/src/ResourceType/ResourceTypeRepository.php
index 5b8b3f6..c536925 100644
--- a/src/ResourceType/ResourceTypeRepository.php
+++ b/src/ResourceType/ResourceTypeRepository.php
@@ -73,6 +73,13 @@ class ResourceTypeRepository implements ResourceTypeRepositoryInterface {
     $this->entityFieldManager = $entity_field_manager;
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  public function getPathPrefix() {
+    return 'jsonapi';
+  }
+
   // @codingStandardsIgnoreStart
   // @todo implement \Drupal\Core\Plugin\CachedDiscoveryClearerInterface?
   // @todo implement \Drupal\Component\Plugin\Discovery\DiscoveryInterface?
diff --git a/src/ResourceType/ResourceTypeRepositoryInterface.php b/src/ResourceType/ResourceTypeRepositoryInterface.php
index 44fd04b..b44f3d6 100644
--- a/src/ResourceType/ResourceTypeRepositoryInterface.php
+++ b/src/ResourceType/ResourceTypeRepositoryInterface.php
@@ -41,4 +41,12 @@ interface ResourceTypeRepositoryInterface {
    */
   public function getByTypeName($type_name);
 
+  /**
+   * Gets the path prefix for routes managed by JSON API.
+   *
+   * @return string
+   *   The route prefix in the JSON API route paths.
+   */
+  public function getPathPrefix();
+
 }
diff --git a/src/Routing/Routes.php b/src/Routing/Routes.php
index 0d4de22..8a95960 100644
--- a/src/Routing/Routes.php
+++ b/src/Routing/Routes.php
@@ -104,7 +104,8 @@ class Routes implements ContainerInjectionInterface {
         continue;
       }
 
-      $route_base_path = sprintf('/jsonapi/%s/%s', $resource_type->getEntityTypeId(), $resource_type->getBundle());
+      $path_prefix = $this->resourceTypeRepository->getPathPrefix();
+      $route_base_path = sprintf('/%s/%s/%s', $path_prefix, $resource_type->getEntityTypeId(), $resource_type->getBundle());
       $build_route_name = function ($key) use ($resource_type) {
         return sprintf('jsonapi.%s.%s', $resource_type->getTypeName(), $key);
       };
