Each HTTP request must have the following request headers set:

XA-AGENT:     agent
XA-RESOURCE:  resource
XA-API-KEY:   api-key

Resources

Gateway

Resource Description
POST /gateway/v2/job_attributes Insert job into XDCDB
GET /gateway/v2/jobs/by_res_user_dates/<resource>/<username>/<start_date>/<end_date> All jobs by a person (found by resource and username), for all resources, in a date range
GET /gateway/v2/jobs/by_proj_dates/<charge_number>/<start_date>/<end_date> All jobs run for a project in a date range
GET /gateway/v2/jobs Last n jobs from an apikey, human-readable

Spacct

Resource Description
GET /spacct/auth_test
GET /spacct/v1/users/resource/<resource>
GET /spacct/v1/projects/resource/<resource>?active_only

Userinfo

Resource Description
GET /userinfo/auth_test
GET /userinfo/v1/people/by_username/<resource>/<username>
GET /userinfo/v1/resources/usernames/<resource>

Xdusage

Resource Description
GET /xdusage/auth_test
GET /xdusage/v1/people/by_username/<resource>/<username>
GET /xdusage/v1/people/by_lastname/<lastname>
GET /xdusage/v1/resources/<resource_name>
GET /xdusage/v1/projects
GET /xdusage/v1/accounts/<account_id>/<resource_id>
GET /xdusage/v1/allocations/<account_id>/<resource_id>/current
GET /xdusage/v1/allocations/<account_id>/<resource_id>/previous
GET /xdusage/v1/counts/by_allocation/<allocation_id>
GET /xdusage/v1/counts/by_dates/<account_id>/<resource_id>/<start_date>/<end_date>
GET /xdusage/v1/usage/by_allocation/<allocation_id>/<person_id>
GET /xdusage/v1/usage/by_dates/<account_id>/<resource_id><start_date>/<end_date>
GET /xdusage/v1/jobs/by_allocation/<allocation_id>/<person_id>
GET /xdusage/v1/jobs/by_dates/<account_id>/<resource_id>/<person_id>/<start_date>/<end_date>
GET /xdusage/v1/jobs/attributes/<job_id>
GET /xdusage/v1/credits_debits/by_allocation/<allocation_id>/<person_id>
GET /xdusage/v1/credits_debits/by_dates/<account_id>/<resource_id>/<person_id>/<start_date>/<end_date>