Search⌘ K
AI Features

API Model for Connections and Job Search

Explore how to define API endpoints and message formats for a professional networking platform. Learn to model profiles, connections, job search, applications, feeds, messaging, and posts while applying pagination, caching, idempotency, WebSockets, and error handling.

We are now familiar with the services involved in a professional networking platform’s API and their workflow. Let’s now shift our focus to discussing the API endpoints required to fulfill our functional requirements. Moreover, we will discuss the essential data entities and the message format for some crucial endpoint in detail.

Let’s start with the base URL of our API.

Base URL and API endpoints

The following URL is used as the base URL for our professional networking platform services. The api.linkedinclone.com is the host URL, v1 represents the version of our API, and services represents the service that a specific API call targets.

The base URL for LinkedIn platform APIs
The base URL for LinkedIn platform APIs

While most of the endpoints are self-explanatory, we'll focus on three services in particular. The feed service assembles ranked content from across the network and is the most read-heavy endpoint on the platform. The connection service is the backbone of the networking model, every feed ranking signal, job recommendation, and messaging permission is gated on the connection graph. The messaging service introduces real-time constraints (read receipts, typing indicators) that differ from the stateless request-response model used by the other endpoints.

We can use the following endpoints and methods to access different services of LinkedIn platform’s API.

Endpoints for multiple operations for a LinkedIn platform

Message format for API endpoints

Let's discuss the data entities involved in the LinkedIn-like platform API and the message format for them in detail. Since the platform spans six functional areas — profiles, connections, jobs, feed, messaging, and posts — our focus will be on the endpoints that carry the most design complexity: profile management, connection handling, job application, feed retrieval, messaging, and post interactions.

Data entities

Let's start by highlighting the core data entities that will be of use to us in the LinkedIn-like platform API.

YAML
type linkedInPlatform
{
profileID: string // Unique identifier for a user's professional profile
userID: string // User ID of the authenticated person making a request
fullName: string // Full name of the profile owner
headline: string // Short professional tagline shown under the name
summary: string // Longer bio or about section
location: string // City and country of the user
profilePhotoUrl: hyperLink // URL of the user's profile photo
experience: list // List of work experience entries (title, company, dates, description)
education: list // List of education entries (institution, degree, field, dates)
skills: list // List of skill strings the user has listed
mediaAttachments: list // List of uploaded portfolio documents or images
connectionID: string // Unique identifier for an established connection
requestID: string // Unique identifier for a pending connection request
senderID: string // Profile ID of the user who sent the connection request
receiverID: string // Profile ID of the user who received the connection request
connectionStatus: string // Status of a connection request: "pending", "accepted", "rejected", "withdrawn", "removed"
connectedAt: string // Timestamp when the connection was established
jobID: string // Unique identifier for a job posting
jobTitle: string // Title of the job role
company: string // Name of the hiring company
jobLocation: string // Location of the job (city or "Remote")
experienceLevel: string // Required level: "entry", "mid", "senior", "executive"
keywords: list // Keywords associated with the job posting
applicationID: string // Unique identifier for a submitted job application
resumeUrl: hyperLink // URL of the uploaded resume file
feedEntries: list // Ranked list of posts, articles, and activity items for the feed
nextCursor: string // Cursor token for cursor-based pagination
totalCount: int // Total number of results matching a query
conversationID: string // Unique identifier for a messaging thread between two users
messageID: string // Unique identifier for a single message
messageContent: string // Text body of a message
readAt: string // Timestamp when the message was read by the recipient
isTyping: boolean // Indicates whether the sender is currently typing
postID: string // Unique identifier for a post
postContent: string // Text content of the post
postMedia: list // List of image or link URLs attached to the post
commentID: string // Unique identifier for a comment on a post
commentContent: string // Text body of a comment
reactionType: string // Type of reaction: "like", "celebrate", "support", "insightful", "curious"
createdAt: string // ISO 8601 creation timestamp for any resource
updatedAt: string // ISO 8601 last-updated timestamp for any resource
}

Manage user profile

In this section we discuss the message format for creating and updating a professional profile, including handling media attachments such as a profile photo or a portfolio document.

  • HTTP method: The POST method is suitable for creating a new resource. The PATCH method is used for partial updates to an existing profile.

Create user profile

  • Request format (HTTP): Following is the request format for creating a user profile.

HTTP format
cURL format
POST /v1/profiles HTTP/2
HOST: api.linkedinclone.com
Authorization: Bearer <JWT>
Content-Type: application/json
Content-Length: xyz
{
"userID": "usr_4821kx",
"fullName": "Sarah Chen",
"headline": "Senior Software Engineer | Open to opportunities",
"location": "San Francisco, CA",
"summary": "8 years of experience building distributed systems...",
"skills": ["Python", "Distributed Systems", "Kubernetes"]
}
The HTTP request format to create a user profile
  • Response format: If the profile is successfully created, the 201 Created status and the created profile's attributes return in the response.

Scala
HTTP/2 201 Created
Content-Type: application/json
Content-Length: xyz
{
"status": "success",
"data": {
"profileID": "prf_00x91z",
"userID": "usr_4821kx",
"fullName": "Sarah Chen",
"headline": "Senior Software Engineer | Open to opportunities",
"location": "San Francisco, CA",
"createdAt": "2025-07-10T09:00:00Z"
}
}

Upload profile media

For attaching a profile photo or portfolio document, an initial upload request is sent to the media endpoint to obtain a mediaID. That mediaID is then included in a subsequent PATCH /v1/profiles/{profile_id} request to associate the media with the profile.

  • Request format (HTTP): The client sends POST /v1/profiles/prf_00x91z/media with the headers and body shown below to upload ...