diff --git a/swh/deposit/api/state.py b/swh/deposit/api/state.py
--- a/swh/deposit/api/state.py
+++ b/swh/deposit/api/state.py
@@ -39,6 +39,7 @@
"swhid",
"swhid_context",
"external_id",
+ "origin_url",
)
for k in keys:
context[k] = getattr(deposit, k, None)
diff --git a/swh/deposit/templates/deposit/status.xml b/swh/deposit/templates/deposit/status.xml
--- a/swh/deposit/templates/deposit/status.xml
+++ b/swh/deposit/templates/deposit/status.xml
@@ -10,6 +10,7 @@
{% if swhid is not None %}{{ swhid }}{% endif %}
{% if swhid_context is not None %}{{ swhid_context }}{% endif %}
{% if external_id is not None %}{{ external_id }}{% endif %}
+ {% if origin_url is not None %}{{ origin_url }}{% endif %}
diff --git a/swh/deposit/tests/api/test_deposit_status.py b/swh/deposit/tests/api/test_deposit_status.py
--- a/swh/deposit/tests/api/test_deposit_status.py
+++ b/swh/deposit/tests/api/test_deposit_status.py
@@ -38,6 +38,7 @@
== DEPOSIT_STATUS_DETAIL[DEPOSIT_STATUS_DEPOSITED]
)
assert r["swh:deposit_external_id"] == deposit.external_id
+ assert r["swh:deposit_origin_url"] == deposit.origin_url
def test_status_unknown_deposit(authenticated_client, deposit_collection):
@@ -123,3 +124,4 @@
assert r["swh:deposit_swh_id"] == deposit.swhid
assert deposit.swhid_context is not None
assert r["swh:deposit_swh_id_context"] == deposit.swhid_context
+ assert r["swh:deposit_origin_url"] == deposit.origin_url