Website API
Seamless API Integration
The Corpus API allows you to securely integrate key models into your company website using an access token.
This makes it easy to manage and display real-time data without manual updates.
A great example is our first tenant, Anatolialit. They use Corpus to manage their dynamic data effortlessly,
ensuring their website stays up to date without any extra work.
What Can You Access?
The API provides structured access to essential models, including:
- Staff members
- International clients
- Co-agents
- Authors and their books
- Events and news
Each model supports bilingual data, allowing you to display information in both the local language and English.
Like all Corpus features, the API is continuously evolving. Any updates or improvements will be reflected in this documentation.
Need IT Support?
The modern and functional design of Anatolialit’s website was developed by us.
If your company lacks IT or developer support, reach out! We’re happy to assist with integration and answer any questions.
Developer Guide
Getting Started
To use the API, your registered Corpus account must have website integration enabled. Once activated, the system will generate a secure access token that allows authorized data transactions.
Available API Endpoints
Staff Members:
Endpoint: https://corpus4agency.com/staff_members
Returns a list of staff members who have web page visibility enabled.
Available parameters: name, bio, en_bio, subdomain, home_image_url, index_image_url, job_title_local, job_title_english
Authors:
Endpoint: https://corpus4agency.com/authors
Returns a list of authors associated with your agency.
Available parameters: slug, name, main_picture
Author Details:
Endpoint: https://corpus4agency.com/author_data/#{params[:slug]}
Retrieve detailed information about a specific author using their slug.
Available parameters: name, image_url, en_bio, local_bio
Author Books:
Endpoint: https://corpus4agency.com/author_data/#{params[:slug]}/books
Returns a list of books by the specified author.
Available parameters: title, image_url, publisher, year, page_number, tr_summary, en_summary
International Clients:
Endpoint: https://corpus4agency.com/international_clients
Available parameters: country_tr, country_en, publisher, category, website
Co-Agents:
Endpoint: https://corpus4agency.com/coagents
Available parameters: name, website, mail, country_en, country_local
News:
Endpoint: https://corpus4agency.com/news_items
Available parameters: title, intro, description, image_url
Events:
Endpoint: https://corpus4agency.com/events
Available parameters: title, intro, description, image_url