Consent (global)

Represents a single consent configured in the system. For a consent associated with a specific applicant, see Consent.

URI
/api/v9/applicants/consents/ID

GET Get a consent

Get information about a specific consent in the system.

Syntax
GET /api/v9/applicants/consents/1
Host: apply.example.edu
Authorization: DREAM apikey="..."

Example request

Request
curl
curl \
  -X GET \
  -H "Authorization: DREAM apikey=\"YOUR-API-KEY\"" \
  "https://apply.example.edu/api/v9/applicants/consents/1"

Response headers

HeaderValueDescription
Content-Typeapplication/jsonMedia type of the resource
Content-Length1456Size of the response body in bytes

Response codes

Response codeDescription
200 OKThe consent exists
400 Bad RequestThe consent ID was not valid
404 Not FoundThe consent was not found

Example response

Response
{
    "type": "Mandatory",
    "text": "I agree to the terms and conditions of data processing",
    "link": "https://apply.example.edu/terms"
}