Organization Documents API

Used by organizations to query and fetch documents that are registered to their national ID. The API is only available through Straumurinn (X-Road)

Authentication

The Island.is Authentication Service with client credentials flow is used for authentication.

Organizations can integrate with this service by:

  1. Creating a Machine to Machine Client (Application) in the IDS Admin.

  2. Requesting API access for the client via Island.is support.

API

Document List

Returns a list of documents registered to the organization. A maximum of 100 items can be retrieved in each request.

get
Query parameters
senderKennitalastringOptional
dateFromstring · date-timeOptional
dateTostring · date-timeOptional
categoryIdstringOptional
typeIdstringOptional
archivedbooleanOptionalDefault: false
orderstring · enumOptionalPossible values:
openedbooleanOptional
pageinteger · int32OptionalDefault: 1
pageSizeinteger · int32OptionalDefault: 15
bookmarkedbooleanOptional
Responses
get
/api/v1/Documents

Get Document

Retrieves the document and its contents. Three content types are supported, only one content type is used per document. content is a base64 string of the documents content htmlContent is plaintext HTML urlContent is a URL linking to the document

get
Path parameters
documentIdstring · uuidRequired
Responses
get
/api/v1/Documents/{documentId}

Read Document

Marks document as read

post
Path parameters
documentIdstring · uuidRequired
Responses
post
/api/v1/Documents/{documentId}/read

No content

Archive Document

Sets the documents archived status

post
Path parameters
documentIdstring · uuidRequired
Body
archivedbooleanOptional
Responses
post
/api/v1/Documents/{documentId}/archive

No content

Bookmark Document

Sets the documents bookmarked status

post
Path parameters
documentIdstring · uuidRequired
Body
bookmarkedbooleanOptional
Responses
post
/api/v1/Documents/{documentId}/bookmark

No content

Document Types

Returns all document types associated with the organization’s documents

get
Responses
get
/api/v1/Documents/types

Document Categories

Returns all document categories associated with the organization’s documents

get
Responses
get
/api/v1/Documents/categories

Last updated

Was this helpful?