How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Socket packages API

The packages API from Socket — 2 operation(s) for packages.

Socket packages API is one of 19 APIs that Socket publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 3 JSON Schema definitions.

Tagged areas include Packages. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 3 JSON Schemas.

This API exposes 2 operations across 2 paths, and defines 25 schemas. It is described by OpenAPI 3.2.0, at version 0.

Requests are made against a single base URL, https://api.socket.dev/v0.

2 operations 2 paths 25 schemas 2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
0
Server
https://api.socket.dev/v0
Authentication
HTTP Bearer, HTTP Basic
Resource Areas
1

Authentication & Security 2

Socket packages API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). It accepts HTTP basic authentication (basicAuth).

  • bearerAuth — Organization Tokens can be passed as a Bearer token
  • basicAuth — Organization Tokens can be passed as the user field in basic auth

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 POST. Each is listed below with its method, path, parameters, and response codes.

packages 2
POST
/purldeprecated
Get Packages by PURL
batchPackageFetch 11 params body → 200400401403404429
POST
/orgs/{org_slug}/purl
Get Packages by PURL (Org Scoped)
batchPackageFetchByOrg 13 params body → 200400401403404429

Schemas 25

The contract defines 25 schemas that model the data the API accepts and returns. The most detailed are SocketAlert (15 properties), SocketArtifactLink (10 properties), ReachabilityResultItem (6 properties), SocketPURL (6 properties). Each schema is shown below with its type and property counts.

LicenseDetails
array
SocketOrgBatchPURLFetch
object
1 property 1 required
ReachabilityResult
object
2 properties 2 required
SocketScore
object
6 properties 6 required
SourceLocation
object
4 properties 4 required
SocketIssueSeverity
string
SocketArtifactPatch
object
2 properties
SAttrib1_N
array
CallStackItem
object
3 properties
ReachabilityResultItem
object
6 properties 1 required
SocketPURL_Type
string
Package ecosystem type identifier based on the PURL specification
ReachabilityType
string
Status of reachability analysis for vulnerable code paths
SocketId
string
SocketCategory
string
PurlErrorSchema
object
2 properties 2 required
BatchPurlStreamSchema
SocketBatchPURLRequest
object
1 property 1 required
SocketPURL
object
6 properties 1 required
SocketArtifact
SocketManifestReference
object
3 properties 1 required
SocketAlert
object
15 properties 2 required
PurlSummarySchema
object
3 properties 3 required
SocketArtifactLink
object
10 properties
SocketPatch
object
3 properties 2 required
ClassStackItem
object
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

socket-dev-packages-api-openapi.yml Raw ↑

Other APIs Socket publishes across the network.

Socket alerts API
Socket api-tokens API
Socket audit-log API
Socket dependencies API
Socket diff-scans API
Socket fixes API
Socket full-scans API
Socket license-policy API
Socket metadata API
Socket org-settings API
Socket org-snapshots API
Socket repo-labels API
Where this information came from

This is an independent, third-party profile of Socket packages API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.